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:
parent
4c33a9d732
commit
b5c1afcb84
3 changed files with 26 additions and 12 deletions
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue