Bond - Make assumed state conditional (#38209)

This commit is contained in:
Marcio Granzotto Rodrigues authored and GitHub committed 2020-07-27 20:39:23 -05:00
1 parent e6e3517a94
commit 02e2c40c48
4 files changed
+60 -3

No files matched your search

+1 -1
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: