Open Hedda opened 1 week ago
Thanks for the heads-up, I will adopt this in the upcoming release.
There's more that will break in 2024.11
Logger: homeassistant.const
Source: helpers/deprecation.py:222
First occurred: 12:28:37 (36 occurrences)
Last logged: 12:28:37
STATE_ALARM_ARMED_VACATION was used from alarmo, this is a deprecated constant which will be removed in HA Core 2025.11. Use AlarmControlPanelState.ARMED_VACATION instead, please report it to the author of the 'alarmo' custom integration
STATE_ALARM_DISARMED was used from alarmo, 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 'alarmo' custom integration
STATE_ALARM_TRIGGERED was used from alarmo, 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 'alarmo' custom integration
STATE_ALARM_PENDING was used from alarmo, 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 'alarmo' custom integration
STATE_ALARM_ARMING was used from alarmo, 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 'alarmo' custom integration
@tomlut
There's more that will break in 2024.11
You mean 2025.11 🙂
I could have sworn I double checked that was 2024 🤦♂️
Would you like me to open a separate issue?
New from the Home Assistant Developer Docs is news about "New alarm control panel state property and state enum":
_As of Home Assistant Core 2024.11, we have introduced the
alarm_state
property in theAlarmControlPanelEntity
. This newly added property should be used instead of directly setting thestate
property.__The new
alarm_state
property should return its state using the newAlarmControlPanelState
enum instead of as previously, setting the state using theSTATE_ALARM_*
constants._There is a one-year deprecation period, and the constants will stop working from 2025.11 to ensure all custom integration authors have time to adjust.
Example:
More details can be found in the alarm control panel documentation.
Checklist
Proposal
[clear description of what you want to see changed or added]
Additional info
[some example of how the new functionality should look like]