Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple HA Constants Becoming Deprecated #23

Closed
tjleach98 opened this issue Jan 12, 2024 · 2 comments
Closed

Multiple HA Constants Becoming Deprecated #23

tjleach98 opened this issue Jan 12, 2024 · 2 comments
Assignees

Comments

@tjleach98
Copy link

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

  • SmartRent Integration Version: v0.4.3
  • Core: 2024.1.2
  • Supervisor: 2023.12.0
  • HA OS: 11.4
  • Frontend: 20240104.0

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: home-assistant/core@fbcb31b
HA.components.climate: home-assistant/core@494a897
HA.components.lock: home-assistant/core@491a50a

@ZacheryThomas ZacheryThomas self-assigned this Jan 19, 2024
@ZacheryThomas
Copy link
Owner

ZacheryThomas commented Jan 19, 2024

Should be fixed in the latest release!

@tjleach98
Copy link
Author

Yep, looks clear to me. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants