Lektrico / ha_lektrico

Manage your Lektrico EV Charger
MIT License
14 stars 4 forks source link

Missing "state_machine_e_activated" after version 1.1 update from 1.1.11 (beta) #11

Closed LeventeVeres closed 4 months ago

LeventeVeres commented 1 year ago

Hi,

After updating the new Lektrico to latest 1.1 i gor followin issue.

Error setting up entry WallBox_500704 for lektrico_custom Traceback (most recent call last): File "/snap/home-assistant-snap/559/lib/python3.10/site-packages/homeassistant/config_entries.py", line 383, in async_setup result = await component.async_setup_entry(hass, self) File "/var/snap/home-assistant-snap/559/custom_components/lektrico_custom/init.py", line 44, in async_setup_entry await charger.charger_info() File "/root/snap/home-assistant-snap/559/.local/lib/python3.10/site-packages/lektricowifi/lektricowifi.py", line 103, in charger_info return Info.from_dict(data) File "/root/snap/home-assistant-snap/559/.local/lib/python3.10/site-packages/lektricowifi/models.py", line 55, in from_dict state_machine_e_activated = data["state_machine_e_activated"], KeyError: 'state_machine_e_activated'

Lektrico commented 4 months ago

Hello, This issue must had been solved with newer versions.