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

deprecated constants #287

Closed
stu247 opened this issue Jan 12, 2024 · 2 comments · Fixed by #289
Closed

deprecated constants #287

stu247 opened this issue Jan 12, 2024 · 2 comments · Fixed by #289

Comments

@stu247
Copy link

stu247 commented Jan 12, 2024

Describe the bug
In HA core 2024.1.1, the following warnings are generated each time HA starts up:

2024-01-11 07:54:16.014 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from lennoxs30, 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/PeteRager/lennoxs30/issues
2024-01-11 07:54:16.017 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from lennoxs30, 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/PeteRager/lennoxs30/issues
2024-01-11 07:54:16.022 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from lennoxs30, 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/PeteRager/lennoxs30/issues
2024-01-11 07:54:16.025 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from lennoxs30, 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/PeteRager/lennoxs30/issues
2024-01-11 07:54:16.027 WARNING (MainThread) [homeassistant.const] TIME_MINUTES was used from lennoxs30, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.MINUTES instead, please create a bug report at https://github.com/PeteRager/lennoxs30/issues
2024-01-11 07:54:16.031 WARNING (MainThread) [homeassistant.components.binary_sensor] DEVICE_CLASS_PRESENCE was used from lennoxs30, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.PRESENCE instead, please create a bug report at https://github.com/PeteRager/lennoxs30/issues
2024-01-11 07:54:16.033 WARNING (MainThread) [homeassistant.components.binary_sensor] DEVICE_CLASS_CONNECTIVITY was used from lennoxs30, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.CONNECTIVITY instead, please create a bug report at https://github.com/PeteRager/lennoxs30/issues
2024-01-11 07:54:16.036 WARNING (MainThread) [homeassistant.components.binary_sensor] DEVICE_CLASS_PRESENCE was used from lennoxs30, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.PRESENCE instead, please create a bug report at https://github.com/PeteRager/lennoxs30/issues
2024-01-11 07:54:16.038 WARNING (MainThread) [homeassistant.components.binary_sensor] DEVICE_CLASS_CONNECTIVITY was used from lennoxs30, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.CONNECTIVITY instead, please create a bug report at https://github.com/PeteRager/lennoxs30/issues

I'm reporting the issue as requested by the warning messages.

To Reproduce
Restart HA core.

Expected behavior
No warning messages.

Screenshots/Logs
NA

Version

  • Home Assistant: 2024.1.1
  • This Integration: 2023.10.1

**Integration Configuration **

  • Cloud or Local Connection: local
  • Inverter or Sensor Diagnostics Enabled: no

Additional context
NA

@PeteRager
Copy link
Owner

Thank you for reporting this issue. I have the code updated and will get this out in next release.

@PeteRager PeteRager linked a pull request Jan 13, 2024 that will close this issue
@PeteRager
Copy link
Owner

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

Successfully merging a pull request may close this issue.

2 participants