magico13 / ha-emporia-vue

Home Assistant Integration for Emporia Vue Energy Monitor
MIT License
479 stars 65 forks source link

Warning: Deprecated constant which will be removed in HA Core 2025.1 #241

Open gdtms247 opened 8 months ago

gdtms247 commented 8 months ago

Logger: homeassistant.const Source: helpers/deprecation.py:205 First occurred: 4:02:57 PM (2 occurrences) Last logged: 4:02:57 PM

POWER_WATT was used from emporia_vue, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please create a bug report at https://github.com/magico13/ha-emporia-vue/issues
ENERGY_KILO_WATT_HOUR was used from emporia_vue, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/magico13/ha-emporia-vue/issues
iSynthetixx commented 8 months ago

I have the same issue

bmwhitetx commented 8 months ago

The release code still has the old constants but the code on the web page has the updated constants. Both are labelled version 8.3. I downloaded the code from the web page and overwrote the files in my HA custom components folder with those files. Warning went away. You can tell by looking at sensor.py line 11 and 12.

magico13 commented 8 months ago

The warning will go away in the next release. It isn't a concern, just a heads up that the current code won't still work in 2025.