toreamun / victorsmartkill-homeassistant

Home Assistant integration for Victor Smart-Kill WI-FI electronic mouse and rat traps from VictorPest.com.
MIT License
18 stars 4 forks source link

TEMP_CELSIUS is a deprecated constant which will be removed in HA Core 2025.1 #41

Closed HansOMartinsen closed 4 months ago

HansOMartinsen commented 8 months ago

Version of Home Assistant

Core 2024.2.2 Supervisor 2024.02.0 Operating System 11.4 Frontend 20240207.1

Version of the custom_component

2023.1.0

Describe the bug

This is the exact line I found in the homeassistant.log

2024-02-22 22:22:37.045 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from victorsmartkill, 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/toreamun/victorsmartkill-homeassistant/issues

Debug log

I believe debug logs is not necessary, as the statement above should be clear.