Mas2112 / solarwatt-energymanager-homeassistant

A SOLARWATT EnergyManager Home Assistant custom component.
MIT License
17 stars 3 forks source link

Use of deprecated constants due for removal in HA Core 2025.1 #17

Closed PattaFeuFeu closed 2 months ago

PattaFeuFeu commented 8 months ago

Hello there!

First of all, thanks for developing this component. It’s helping a lot!

When upgrading to Home Assistant Core 2024.2 (it’s possible it was introduced earlier), I noticed the following deprecation warnings and wanted to notify you about them in this way. 😊

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 00:27:52 (5 occurrences)
Last logged: 00:27:52

ELECTRIC_CURRENT_AMPERE was used from solarwatt_energymanager, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricCurrent.AMPERE instead, please create a bug report at https://github.com/Mas2112/solarwatt-energymanager-homeassistant/issues

ELECTRIC_POTENTIAL_VOLT was used from solarwatt_energymanager, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT instead, please create a bug report at https://github.com/Mas2112/solarwatt-energymanager-homeassistant/issues

ENERGY_KILO_WATT_HOUR was used from solarwatt_energymanager, 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/Mas2112/solarwatt-energymanager-homeassistant/issues

POWER_WATT was used from solarwatt_energymanager, 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/Mas2112/solarwatt-energymanager-homeassistant/issues

TEMP_CELSIUS was used from solarwatt_energymanager, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/Mas2112/solarwatt-energymanager-homeassistant/issues
Mas2112 commented 8 months ago

Thanks for reporting this. When I find some time, I will fix this