CharlesGillanders / homeassistant-alphaESS

Monitor your energy generation, storage, and usage data using the official API from Alpha ESS.
MIT License
101 stars 22 forks source link

Deprecation warning in HA 2024.1.2 #103

Closed dan-s-github closed 10 months ago

dan-s-github commented 10 months ago

Happy New Year and some new deprecations ;-)

After updating HA core to 2024.1.2 I noticed following deprecation warnings

2024-01-07 12:53:14.656 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from alphaess, 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/CharlesGillanders/homeassistant-alphaESS/issues
2024-01-07 12:53:14.670 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from alphaess, 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/CharlesGillanders/homeassistant-alphaESS/issues
Poshy163 commented 10 months ago

Yeah, its been fixed with the latest pull: Updated deprecated measurement usage

CharlesGillanders commented 10 months ago

fixed in v0.4.8