Fix unique ID Verisure alarm control panel (#51087)
parent
997a847b5c
commit
affc8e0f0b
|
@ -36,8 +36,6 @@ class VerisureAlarm(CoordinatorEntity, AlarmControlPanelEntity):
|
|||
coordinator: VerisureDataUpdateCoordinator
|
||||
|
||||
_attr_name = "Verisure Alarm"
|
||||
_attr_supported_features = SUPPORT_ALARM_ARM_HOME | SUPPORT_ALARM_ARM_AWAY
|
||||
|
||||
_changed_by: str | None = None
|
||||
|
||||
@property
|
||||
|
@ -55,6 +53,11 @@ class VerisureAlarm(CoordinatorEntity, AlarmControlPanelEntity):
|
|||
"""Return the list of supported features."""
|
||||
return SUPPORT_ALARM_ARM_HOME | SUPPORT_ALARM_ARM_AWAY
|
||||
|
||||
@property
|
||||
def unique_id(self) -> str:
|
||||
"""Return the unique ID for this entity."""
|
||||
return self.coordinator.entry.data[CONF_GIID]
|
||||
|
||||
@property
|
||||
def code_format(self) -> str:
|
||||
"""Return one or more digits/characters."""
|
||||
|
|
Loading…
Reference in New Issue