Add satel integra switches and alarm control panels unique_id (#129636)

pull/133624/merge
Dawid Pietryga 2025-01-08 14:49:43 +01:00 committed by GitHub
parent 99e65c38b0
commit 39143a2e79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,7 @@ class SatelIntegraAlarmPanel(AlarmControlPanelEntity):
def __init__(self, controller, name, arm_home_mode, partition_id):
"""Initialize the alarm panel."""
self._attr_name = name
self._attr_unique_id = f"satel_alarm_panel_{partition_id}"
self._arm_home_mode = arm_home_mode
self._partition_id = partition_id
self._satel = controller

View File

@ -58,6 +58,7 @@ class SatelIntegraSwitch(SwitchEntity):
def __init__(self, controller, device_number, device_name, code):
"""Initialize the binary_sensor."""
self._device_number = device_number
self._attr_unique_id = f"satel_switch_{device_number}"
self._name = device_name
self._state = False
self._code = code