Bond - Make assumed state conditional (#38209)

This commit is contained in:
Marcio Granzotto Rodrigues 2020-07-27 22:39:23 -03:00 committed by GitHub
parent e6e3517a94
commit 02e2c40c48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 3 deletions

View file

@ -46,7 +46,7 @@ class BondEntity(Entity):
@property
def assumed_state(self) -> bool:
"""Let HA know this entity relies on an assumed state tracked by Bond."""
return True
return self._hub.is_bridge and not self._device.trust_state
@property
def available(self) -> bool: