Lektrico / ha_lektrico

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

Failed setup in new version #21

Closed rechin304 closed 1 month ago

rechin304 commented 1 month ago

Error shown by HA "Failed setup, will retry: name 'CURRENT_LIMIT_REASON' is not defined"

image
rechin304 commented 1 month ago

More logs

This error originated from a custom integration.

Logger: custom_components.lektrico_custom Source: helpers/update_coordinator.py:354 integration: Lektrico Charging Station (documentation, issues) First occurred: 10:20:55 PM (1 occurrences) Last logged: 10:20:55 PM

Unexpected error fetching lektrico_custom-1p7k data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/lektrico_custom/init.py", line 118, in _async_update_data info = await self.device.device_info(self.device_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/lektricowifi/lektricowifi.py", line 96, in device_info if int_limit_reason >= len(CURRENT_LIMIT_REASON): ^^^^^^^^^^^^^^^^^^^^ NameError: name 'CURRENT_LIMIT_REASON' is not defined. Did you mean: 'self.CURRENT_LIMIT_REASON'?

rechin304 commented 1 month ago

rolling back to Release v1.2.2 and is back. so latest release v1.2.5 have that issue.

Marcofant commented 1 month ago

I have the same issue.

lukedan1 commented 1 month ago

Same here on tri-phase model 3p22k..

Redrex85 commented 1 month ago

I have the same issue.

ionutgogu commented 1 month ago

Error shown by HA "Failed setup, will retry: name 'CURRENT_LIMIT_REASON' is not defined"

image

Same here

TROTRO91 commented 1 month ago

I have the same issue. (one) image

rechin304 commented 1 month ago

latest update v.1.2.6 fixed the error.