dahlb / ha_carrier

Carrier Infinity Integration for Home Assistant
MIT License
35 stars 3 forks source link

fix: startup warning about deprecated TEMP_FAHRENHEIT and TEMP_CELSIUS in 2024.1.6 #85

Closed matthewbogner closed 5 months ago

matthewbogner commented 5 months ago

I am running HA Core 2024.1.6

Upon startup, I am seeing the following warnings. Seemed simple enough to just fix instead of opening an issue. This change (https://github.com/home-assistant/core/pull/81006) was made in HA core in 2022.11, so this shouldn't reasonably be introducing any backward compatibility issues.

2024-02-02 16:30:49.771 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from ha_carrier, 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/dahlb/ha_carrier/issues
2024-02-02 16:30:49.782 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from ha_carrier, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/dahlb/ha_carrier/issues
2024-02-02 16:30:49.805 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from ha_carrier, 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/dahlb/ha_carrier/issues
2024-02-02 16:30:49.815 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from ha_carrier, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/dahlb/ha_carrier/issues
dahlb commented 5 months ago

Thanks for fixing this 😃