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 authored and Paulus Schoutsen committed 2019-12-02 22:14:16 -08:00
1 parent 32e04e1dce
commit 4191d9ca8d
2 files changed
+35 -5

No files matched your search

@@ -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: