Pyhass / Hive-Custom-Component

A custom version of the home assistant hive component
MIT License
33 stars 17 forks source link

[BUG] Warning about 2025.1 Deprecated Constants #152

Open holdestmade opened 7 months ago

holdestmade commented 7 months ago

Describe the bug Getting a couple of warnings in logs about 2025.1 Deprecated Constants

POWER_WATT was used from hive, 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/Pyhass/Hive-Custom-Component/issues

TEMP_CELSIUS was used from hive, 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/Pyhass/Hive-Custom-Component/issues

To Reproduce Restart HA

Expected behaviour NA

Screenshots NA

Desktop (please complete the following information):

Additional context None

cpether commented 6 months ago

I've created a PR for this, but not sure if anyone is monitoring this repo to merge it!

https://github.com/Pyhass/Hive-Custom-Component/pull/154

holdestmade commented 6 months ago

I've created a PR for this, but not sure if anyone is monitoring this repo to merge it!

Many thanks, I've added these changes manually for now. It also showed me how to update another custom component with similar warnings