Fix possibly missing changed_by in Verisure Alarm (#48867)
This commit is contained in:
parent
e475b6b9c3
commit
1dafea705d
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class VerisureAlarm(CoordinatorEntity, AlarmControlPanelEntity):
|
|||
self._state = ALARM_STATE_TO_HA.get(
|
||||
self.coordinator.data["alarm"]["statusType"]
|
||||
)
|
||||
self._changed_by = self.coordinator.data["alarm"]["name"]
|
||||
self._changed_by = self.coordinator.data["alarm"].get("name")
|
||||
super()._handle_coordinator_update()
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
|
|
Loading…
Add table
Reference in a new issue