Report unavailable entities to google (#28501)

* Report unavailable entites to google.

Entities should only removed when removed from HA. Removing a temporarily unavailable entity from google causes it to need to re-configured once it become available again.

* Fix test for unavailable entities
This commit is contained in:
Joakim Plate 2019-12-03 07:14:16 +01:00 committed by Paulus Schoutsen
parent 32e04e1dce
commit 4191d9ca8d
2 changed files with 35 additions and 5 deletions

View file

@ -336,7 +336,7 @@ class GoogleEntity:
@callback
def is_supported(self) -> bool:
"""Return if the entity is supported by Google."""
return self.state.state != STATE_UNAVAILABLE and bool(self.traits())
return bool(self.traits())
@callback
def might_2fa(self) -> bool: