leeyuentuen / polestar_api

Polestar Api - Home Assistant Component
MIT License
112 stars 18 forks source link

After updating to 1.2.2 - Error while setting up polestar_api platform for sensor #33

Closed Stroell closed 6 months ago

Stroell commented 6 months ago

Hi, after updating from 1.2.0 to 1.2.2 it stopped working with the following error:

Logger: homeassistant.components.sensor Source: helpers/entity_platform.py:361 Integration: Sensor (documentation, issues) First occurred: 9:23:00 PM (1 occurrences) Last logged: 9:23:00 PM

Error while setting up polestar_api platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/polestar_api/sensor.py", line 392, in async_setup_entry sensors = [ ^ File "/config/custom_components/polestar_api/sensor.py", line 393, in PolestarSensor(device, description) for description in POLESTAR_SENSOR_TYPES ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/polestar_api/sensor.py", line 416, in init self.translationkey = f"polestar{description.key}" ^^^^^^^^^^^^^^^^^^^^ AttributeError: property 'translation_key' of 'PolestarSensor' object has no setter

image

Stroell commented 6 months ago

Fixed in 1.2.3