* 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
18 lines
472 B
Python
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,
|
|
}
|