fsaris / home-assistant-zonneplan-one

Unofficial Zonneplan integration for Home Assistant
https://github.com/fsaris/home-assistant-zonneplan-one
MIT License
104 stars 17 forks source link

Deprecated constants used in Zonneplan integration #98

Closed theincredibleman closed 6 months ago

theincredibleman commented 6 months ago

Hi,

HA logs the following error regarding the Zonneplan integration. Could you please adjust the values?

WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from zonneplan_one, 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/fsaris/home-assistant-zonneplan-one/issues

WARNING (MainThread) [homeassistant.const] POWER_WATT was used from zonneplan_one, 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/fsaris/home-assistant-zonneplan-one/issues

WARNING (MainThread) [homeassistant.const] VOLUME_CUBIC_METERS was used from zonneplan_one, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfVolume.CUBIC_METERS instead, please create a bug report at https://github.com/fsaris/home-assistant-zonneplan-one/issues

Great project by the way, working perfectly so far!

fsaris commented 6 months ago

What version are you using?

This should all be fixed in latest release https://github.com/fsaris/home-assistant-zonneplan-one/releases/tag/0.0.24

theincredibleman commented 6 months ago

I totally missed that, sorry. Updated and the error is gone :)