Hive-Custom-Component icon indicating copy to clipboard operation
Hive-Custom-Component copied to clipboard

[BUG] Warning about 2025.1 Deprecated Constants

Open holdestmade opened this issue 1 year ago • 2 comments

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):

  • OS: Windows 11
  • Chrome
  • Version 120.0.6099.217

Additional context None

holdestmade avatar Jan 17 '24 11:01 holdestmade

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

cpether avatar Feb 12 '24 14:02 cpether

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

holdestmade avatar Feb 12 '24 15:02 holdestmade