Ensure SimpliSafe alarm control panels can return from being offline (#28710)

This commit is contained in:
Aaron Bach 2019-11-11 18:55:31 -07:00 committed by GitHub
parent cfa689c3a6
commit a89b4011ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,6 +133,8 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanel):
self._online = False
return
self._online = True
if self._system.state == SystemStates.off:
self._state = STATE_ALARM_DISARMED
elif self._system.state in (SystemStates.home, SystemStates.home_count):