gjohansson-ST / sector

Integration to Sector Alarm for Home Assistant
36 stars 18 forks source link

Fix upcoming deprecations #217

Open garnser opened 5 days ago

garnser commented 5 days ago

Describe the feature request

STATE_ALARM_ARMED_AWAY was used from sector, this is a deprecated constant which will be removed in HA Core 2025.11. Use AlarmControlPanelState.ARMED_AWAY instead, please report it to the author of the 'sector' custom integration

STATE_ALARM_ARMED_HOME was used from sector, 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 'sector' custom integration

STATE_ALARM_DISARMED was used from sector, 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 'sector' custom integration

Entity None (<class 'custom_components.sector.alarm_control_panel.SectorAlarmControlPanel'>) 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.

Expected behavior

Replace this with a clear and concise description of what you expected to happen.

Additional context

Replace this with adding any other context about the feature here.

gjohansson-ST commented 5 days ago

Duplicate of #199