Make SimpliSafe entities unavailable when wifi is lost (#32154)

* Make SimpliSafe entities unavailable when wifi is lost

* Remove online status from REST API

* Comments

* Mispelling
This commit is contained in:
Aaron Bach 2020-02-25 20:03:41 -07:00 committed by GitHub
parent 4c33a9d732
commit b5c1afcb84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 12 deletions

View file

@ -190,11 +190,6 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanel):
@callback
def async_update_from_rest_api(self):
"""Update the entity with the provided REST API data."""
if self._system.state == SystemStates.error:
self._online = False
return
self._online = True
if self._system.version == 3:
self._attrs.update(
{