1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-04 05:05:38 +01:00

Fix Satel Integra arm home mode selection (#173431)

This commit is contained in:
Tom Matheussen
2026-06-11 12:33:42 +02:00
committed by GitHub
parent 0d67cc0795
commit 00a48df8cb
3 changed files with 21 additions and 4 deletions
@@ -63,11 +63,21 @@ CODE_SCHEMA = vol.Schema(
}
)
ARM_HOME_MODE_OPTIONS = ["1", "2", "3"]
PARTITION_SCHEMA = vol.Schema(
{
vol.Required(CONF_NAME): cv.string,
vol.Required(CONF_ARM_HOME_MODE, default=DEFAULT_CONF_ARM_HOME_MODE): vol.In(
[1, 2, 3]
vol.Required(CONF_ARM_HOME_MODE, default=DEFAULT_CONF_ARM_HOME_MODE): vol.All(
vol.Coerce(str),
selector.SelectSelector(
selector.SelectSelectorConfig(
options=ARM_HOME_MODE_OPTIONS,
mode=selector.SelectSelectorMode.DROPDOWN,
translation_key="arm_home_mode",
)
),
vol.Coerce(int),
),
}
)
@@ -1,6 +1,6 @@
"""Constants for the Satel Integra integration."""
DEFAULT_CONF_ARM_HOME_MODE = 1
DEFAULT_CONF_ARM_HOME_MODE = "1"
DEFAULT_PORT = 7094
DOMAIN = "satel_integra"
@@ -113,7 +113,7 @@
"partition_number": "Partition number"
},
"data_description": {
"arm_home_mode": "The mode in which the partition is armed when 'arm home' is used. For more information on what the differences are between them, please refer to Satel Integra manual.",
"arm_home_mode": "The arming mode to use for 'arm home':\nMode 1 fully arms and bypasses zones that have the 'Bypassed if no exit' option enabled.\nMode 2 disarms interior zones; exterior zones trigger silent alarms and other alarm zones trigger loud alarms.\nMode 3 is like mode 2, but delayed zones are instant.",
"name": "The name to give to the alarm panel",
"partition_number": "Enter partition number to configure"
},
@@ -223,6 +223,13 @@
}
},
"selector": {
"arm_home_mode": {
"options": {
"1": "1 - Full arming + bypasses",
"2": "2 - No interior zones",
"3": "3 - No interior zones or entry delay"
}
},
"binary_sensor_device_class": {
"options": {
"battery": "[%key:component::binary_sensor::entity_component::battery::name%]",