tschamm / boschshc-hass

Home Assistant component for accessing Bosch Smart Home Controller using boschshcpy python library.
Other
168 stars 25 forks source link

Warning 'alarm_state' property since 2024.11 #199

Closed Gloomyeye closed 7 hours ago

Gloomyeye commented 8 hours ago

Hello,

with the newest beta version 2024.11, the following warnings occurs in the log:

Logger: homeassistant.components.alarm_control_panel
Quelle: components/alarm_control_panel/__init__.py:210
Integration: Alarmzentrale (Dokumentation, Probleme)
Erstmals aufgetreten: 21:29:42 (2 Vorkommnisse)
Zuletzt protokolliert: 21:29:42

Entity None (<class 'custom_components.bosch_shc.alarm_control_panel.IntrusionSystemAlarmControlPanel'>) is setting state directly which will stop working in HA Core 2025.11. Entities should implement the 'alarm_state' property and return its state using the AlarmControlPanelState enum, please report it to the custom integration author.
Logger: homeassistant.const
Quelle: helpers/deprecation.py:222
Erstmals aufgetreten: 21:29:42 (43 Vorkommnisse)
Zuletzt protokolliert: 21:29:42

STATE_ALARM_ARMED_HOME was used from bosch_shc, this is a deprecated constant which will be removed in HA Core 2025.11. Use AlarmControlPanelState.ARMED_HOME instead, please report it to the author of the 'bosch_shc' custom integration
STATE_ALARM_ARMING was used from bosch_shc, this is a deprecated constant which will be removed in HA Core 2025.11. Use AlarmControlPanelState.ARMING instead, please report it to the author of the 'bosch_shc' custom integration
STATE_ALARM_DISARMED was used from bosch_shc, this is a deprecated constant which will be removed in HA Core 2025.11. Use AlarmControlPanelState.DISARMED instead, please report it to the author of the 'bosch_shc' custom integration
STATE_ALARM_PENDING was used from bosch_shc, this is a deprecated constant which will be removed in HA Core 2025.11. Use AlarmControlPanelState.PENDING instead, please report it to the author of the 'bosch_shc' custom integration
STATE_ALARM_TRIGGERED was used from bosch_shc, this is a deprecated constant which will be removed in HA Core 2025.11. Use AlarmControlPanelState.TRIGGERED instead, please report it to the author of the 'bosch_shc' custom integration
tschamm commented 7 hours ago

Thank you for reporting. A fix is already available as soon as 2024.11 is released: https://github.com/tschamm/boschshc-hass/tree/fix_alarmcontrolpanel_state_w_release_2024.11.0