nordicopen / easee_hass

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

Integration fails to start on latest HA core-2021.8.0b4 #125

Closed henrikeri closed 3 years ago

henrikeri commented 3 years ago

The Easee integration fails to start on the latest beta. It fails with the following message:

Logger: homeassistant.setup

Source: setup.py:173 First occurred: 9:48:42 (1 occurrences) Last logged: 9:48:42

Setup failed for easee: Unable to import component: cannot import name >'ELECTRICAL_CURRENT_AMPERE' from 'homeassistant.const' >(/usr/src/homeassistant/homeassistant/const.py)

Please let me know if you need more logs or similar.

tmjo commented 3 years ago

I get the same error in my dev container. Seems to be related to a renaming of constants in HA, probably due to some clean-up for the new energy feature. See here where VOLT is renamed to ELECTRIC_POTENTIAL_VOLT and ELECTRICAL_CURRENT_AMPERE is renamed to ELECTRIC_CURRENT_AMPERE.

We'll fix this as soon as possible.

henrikeri commented 3 years ago

I forked and created PR #126 to close this.