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:
parent
32e04e1dce
commit
4191d9ca8d
2 changed files with 35 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue