From affc8e0f0be765f5adc31113ad535852e01cc75a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 26 May 2021 00:21:53 +0200 Subject: [PATCH] Fix unique ID Verisure alarm control panel (#51087) --- homeassistant/components/verisure/alarm_control_panel.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/verisure/alarm_control_panel.py b/homeassistant/components/verisure/alarm_control_panel.py index 3c77541cea8..4def470ac5e 100644 --- a/homeassistant/components/verisure/alarm_control_panel.py +++ b/homeassistant/components/verisure/alarm_control_panel.py @@ -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."""