Fix unique ID Verisure alarm control panel (#51087)

pull/55192/head
Franck Nijhof 2021-05-26 00:21:53 +02:00 committed by GitHub
parent 997a847b5c
commit affc8e0f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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."""