bachya/simplisafe-python

Unknown alarm websocket event: `connection_restored`

Closed this issue · 1 comments

Describe the bug

A Home Assistant user recently reported the below log message:

Logger: homeassistant.components.simplisafe
Source: components/simplisafe/alarm_control_panel.py:249
Integration: SimpliSafe (documentation, issues) 
First occurred: February 1, 2022, 8:43:35 AM (1 occurrences)
Last logged: February 1, 2022, 8:43:35 AM

Unknown alarm websocket event: connection_restored

The logs also gave this detail:

2022-02-01 15:43:35 ERROR (MainThread) [homeassistant.util.logging] Exception in _handle_websocket_update when dispatching 'simplisafe_websocket_event_REDACTED': (WebsocketEvent(info='SimpliSafe WiFi Restored', system_id=REDACTED, timestamp=datetime.datetime(2022, 2, 1, 15, 42, 30, tzinfo=<UTC>), event_type='connection_restored', changed_by='', sensor_name='', sensor_serial='', sensor_type=<DeviceTypes.REMOTE: 0>),)

Actually, this isn't an issue here – the library is parsing the event correctly; it's Home Assistant that needs to handle the error.