hass-core/homeassistant/components/ialarm/const.py
G Johansson cdfec7ebb4
Implement new state property for alarm_control_panel which is using an enum (#126283)
* Alarm state from enum

* Fixes

* Set final

* Fix rebase

* Test const

* Fix breaking version

* Fix other for alarm_control_panel

* Fix integrations

* More

* More

* More

* More

* Fix zha

* Replace _attr_state

* Fix alarm_control_panel

* Fix tests

* Fixes

* Mods

* Change some

* More

* More

* More

* Tests

* Last tests

* Return enum

* Fix zha

* Remove not needed check

* Fix wording

* Fix homekit

* Mod prometheus

* Fix mypy

* Fix homekit

* Fix ifttt
2024-10-21 22:54:27 +02:00

18 lines
472 B
Python

"""Constants for the iAlarm integration."""
from pyialarm import IAlarm
from homeassistant.components.alarm_control_panel import AlarmControlPanelState
DATA_COORDINATOR = "ialarm"
DEFAULT_PORT = 18034
DOMAIN = "ialarm"
IALARM_TO_HASS = {
IAlarm.ARMED_AWAY: AlarmControlPanelState.ARMED_AWAY,
IAlarm.ARMED_STAY: AlarmControlPanelState.ARMED_HOME,
IAlarm.DISARMED: AlarmControlPanelState.DISARMED,
IAlarm.TRIGGERED: AlarmControlPanelState.TRIGGERED,
}