palazzem / ha-econnect-alarm

Home Assistant integration that provides a full-fledged Alarm Panel to control your Elmo/IESS alarm systems.
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

Constant deprecated in future HA Core 2025.1 #120

Closed MarcoZ76 closed 4 months ago

MarcoZ76 commented 5 months ago

Describe the bug Constant deprecated in the future Home Assistant Core 2025.1. Some warning appears in the log.

Error message

hass-dev  | 2024-02-01 15:54:47.500 WARNING (MainThread) [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 create a bug report at https://github.com/palazzem/ha-econnect-alarm/issues
hass-dev  | 2024-02-01 15:54:47.502 WARNING (MainThread) [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 create a bug report at https://github.com/palazzem/ha-econnect-alarm/issues
hass-dev  | 2024-02-01 15:54:47.503 WARNING (MainThread) [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 create a bug report at https://github.com/palazzem/ha-econnect-alarm/issues
hass-dev  | 2024-02-01 15:54:47.505 WARNING (MainThread) [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 create a bug report at https://github.com/palazzem/ha-econnect-alarm/issues
hass-dev  | 2024-02-01 15:54:47.506 WARNING (MainThread) [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 create a bug report at https://github.com/palazzem/ha-econnect-alarm/issues
hass-dev  | 2024-02-01 15:54:47.508 WARNING (MainThread) [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 create a bug report at https://github.com/palazzem/ha-econnect-alarm/issues

###########################################

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

############################################

Expected behavior No warnings in the log

To Reproduce Install HA Core 2024.1

Environment

palazzem commented 5 months ago

Thank you very much @MarcoZ76 ! We'll fix this deprecation warning in the next release!