nordicopen / easee_hass

Custom component for Easee EV charger integration with Home Assistant
207 stars 34 forks source link

If there are no schedules we should not spam the logs #16

Closed fondberg closed 3 years ago

fondberg commented 4 years ago

2020-08-05 11:49:23 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.easee_charger_eh239897_basic_schedule fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 463, in async_device_update await self.async_update() # type: ignore File "/config/custom_components/easee/sensor.py", line 456, in async_update self._state = self.get_value_from_key(self._state_key) File "/config/custom_components/easee/sensor.py", line 439, in get_value_from_key value = self.charger_data.schedule[second] KeyError: 'id'

tmjo commented 4 years ago

See #17 and corresponding PR for the library.

tmjo commented 4 years ago

This issue is ok now, right? Close?

tmjo commented 3 years ago

Believe this is ok.