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 constant #161

Closed
galtamur opened this issue May 14, 2024 · 5 comments
Closed

Deprecated constant #161

galtamur opened this issue May 14, 2024 · 5 comments

Comments

@galtamur
Copy link

Describe the bug
When HA starts, the log shows some warning messages for deprecated constants.

Error message
XXX was used from econnect_metronet, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.NUMBER instead, please report it to the author of the 'econnect_metronet' custom integration

Expected behavior
The integration is working but this message is shown in the log.

To Reproduce
Just start HA.

Environment

  • Operating System (OS): Debian
  • Library version (commit or version number): 2.2.1
  • Home Assistant version: 2024.5.3
  • Last working Home Assistant release (if known): 2024.3 (maybe)

The complete set of messages in the log
2024-05-14 02:43:01.390 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel] FORMAT_NUMBER was used from econnect_metronet, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.NUMBER instead, please report it to the author of the 'econnect_metronet' custom integration
2024-05-14 02:43:01.398 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel] FORMAT_NUMBER was used from econnect_metronet, this is a deprecated constant which will be removed in HA Core 2025.1. Use CodeFormat.NUMBER instead, please report it to the author of the 'econnect_metronet' custom integration
2024-05-14 02:43:01.406 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_ARM_AWAY was used from econnect_metronet, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_AWAY instead, please report it to the author of the 'econnect_metronet' custom integration
2024-05-14 02:43:01.416 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_ARM_HOME was used from econnect_metronet, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_HOME instead, please report it to the author of the 'econnect_metronet' custom integration
2024-05-14 02:43:01.425 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_ARM_NIGHT was used from econnect_metronet, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_NIGHT instead, please report it to the author of the 'econnect_metronet' custom integration
2024-05-14 02:43:01.432 WARNING (ImportExecutor_0) [homeassistant.components.alarm_control_panel.const] SUPPORT_ALARM_ARM_VACATION was used from econnect_metronet, this is a deprecated constant which will be removed in HA Core 2025.1. Use AlarmControlPanelEntityFeature.ARM_VACATION instead, please report it to the author of the 'econnect_metronet' custom integration

@palazzem
Copy link
Owner

Hello @galtamur ! Thanks for filling this issue, I'll be sure to include it in the next release coming this week!

@galtamur
Copy link
Author

galtamur commented May 15, 2024 via email

@palazzem palazzem added this to the 2.4.0 milestone May 15, 2024
@palazzem
Copy link
Owner

palazzem commented May 15, 2024

Hello @galtamur ! I took a look and it looks like these deprecation warnings have been already fixed in version 2.3.0 (see #128). Can you try to update your library version from 2.2.1 to 2.3.0?

Theoretically, you should not see any new deprecation, but reach out to me to confirm if the fix works well for you! Thank you very much in advance!

@galtamur
Copy link
Author

galtamur commented May 15, 2024 via email

@palazzem
Copy link
Owner

Great! Feel free to post your feedback any time you see room for improvements! Thanks again!

@palazzem palazzem removed this from the 2.4.0 milestone May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants