mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix possible KeyError in SimpliSafe (#26190)
This commit is contained in:
parent
059ae2bb68
commit
7238eb9bac
@ -170,7 +170,7 @@ class SimpliSafeAlarm(AlarmControlPanel):
|
||||
"""Update alarm status."""
|
||||
event_data = self._simplisafe.last_event_data[self._system.system_id]
|
||||
|
||||
if event_data["pinName"]:
|
||||
if event_data.get("pinName"):
|
||||
self._changed_by = event_data["pinName"]
|
||||
|
||||
if self._system.state == SystemStates.error:
|
||||
|
Loading…
x
Reference in New Issue
Block a user