mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-23 03:06:51 -04:00
Fix applance connection handling
This commit is contained in:
parent
a6c2c3e992
commit
0e26b4a0f7
7 changed files with 8 additions and 8 deletions
|
@ -82,7 +82,7 @@ class HonButtonEntity(HonEntity, ButtonEntity):
|
|||
return (
|
||||
super().available
|
||||
and int(self._device.get("remoteCtrValid", "1")) == 1
|
||||
and self._device.get("attributes.lastConnEvent.category") != "DISCONNECTED"
|
||||
and self._device.connection
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue