magic7s / intelbras-solar

Home Assistant Integration for Intelbras Solar
MIT License
4 stars 0 forks source link

Use of Deprecated constant which will be removed in HA Core 2025.1 #5

Closed oronaldosantos closed 6 months ago

oronaldosantos commented 10 months ago

Version of the custom_component

0.0.3

Describe the bug

Using the following deprecated constant which will be removed in HA Core 2025.1:

Debug log


Log details (WARNING)
Logger: homeassistant.const
Source: helpers/deprecation.py:204
First occurred: 11:55:45 AM (5 occurrences)
Last logged: 11:55:45 AM

ENERGY_WATT_HOUR was used from intelbras_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.WATT_HOUR instead, please create a bug report at https://github.com/magic7s/intelbras-solar/issues
ENERGY_KILO_WATT_HOUR was used from intelbras_solar, 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/magic7s/intelbras-solar/issues
POWER_WATT was used from intelbras_solar, 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/magic7s/intelbras-solar/issues
DEVICE_CLASS_ENERGY was used from intelbras_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.ENERGY instead, please create a bug report at https://github.com/magic7s/intelbras-solar/issues
DEVICE_CLASS_POWER was used from intelbras_solar, this is a deprecated constant which will be removed in HA Core 2025.1. Use SensorDeviceClass.POWER instead, please create a bug report at https://github.com/magic7s/intelbras-solar/issues
oronaldosantos commented 8 months ago

Any chance on fix for this issue @magic7s ?

Thanks