ZacheryThomas / homeassistant-smartrent

Home Assistant Custom Component for SmartRent Locks 🔐, Thermostats 🌡, Sensors 💧 and Switches💡
MIT License
84 stars 3 forks source link

Multiple HA Constants Becoming Deprecated #23

Closed tjleach98 closed 9 months ago

tjleach98 commented 9 months ago

I just checked my HA logs and noticed multiple warnings about some constants becoming deprecated in version 2025.1. Obviously, not an issue anytime soon but just wanted to make note of it here. I haven't checked if other constants are in the same situation. These are just constants that HA complained about.

If it would help, I could write up some pull requests with the changes.

Thank you for the great work on this integration!

Environment

Logs

2024-01-10 08:31:17.881 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from smartrent, 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/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.917 WARNING (MainThread) [homeassistant.components.lock] SUPPORT_OPEN was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use LockEntityFeature.OPEN instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.921 WARNING (MainThread) [homeassistant.components.lock] SUPPORT_OPEN was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use LockEntityFeature.OPEN instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.942 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_COOL was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.COOL instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.945 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.948 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT_COOL was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT_COOL instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.951 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.953 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_FAN_MODE was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.956 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.960 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE_RANGE was used from smartrent, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE_RANGE instead, please create a bug report at https://github.com/ZacheryThomas/homeassistant-smartrent/issues
2024-01-10 08:31:17.964 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from smartrent, 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/ZacheryThomas/homeassistant-smartrent/issues

Relevant HA Core Changes

HA.const: https://github.com/home-assistant/core/commit/fbcb31b1030e51cab2aac95484c4008fab40fbe2 HA.components.climate: https://github.com/home-assistant/core/commit/494a8975687e67f7b9889db1ccfffd6923d5f17c HA.components.lock: https://github.com/home-assistant/core/commit/491a50a2f1091dc6f960a7bbb127368a34cdbef4

ZacheryThomas commented 9 months ago

Should be fixed in the latest release!

tjleach98 commented 9 months ago

Yep, looks clear to me. Thank you!