rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.71k stars 530 forks source link

Deprecation of sensors #1702

Open JHPWBN opened 2 months ago

JHPWBN commented 2 months ago

I have just finished installing localtuya (latest version) and get several warnings from HASS. @rospogrigio @ultratoto14 @postlund I hope you will be able to fix this before it is too late?

One example: Logger: homeassistant.const Source: helpers/deprecation.py:206 First occurred: 08:52:29 (4 occurrences) Last logged: 08:52:37

TEMP_CELSIUS was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'localtuya' custom integration TEMP_FAHRENHEIT was used from localtuya, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please report it to the author of the 'localtuya' custom integration TEMP_CELSIUS was used from goecharger, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'goecharger' custom integration ENERGY_KILO_WATT_HOUR was used from goecharger, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please report it to the author of the 'goecharger' custom integration

neildsb commented 1 month ago

https://github.com/rospogrigio/localtuya/issues/1650 duplicate