mirror of
https://github.com/Andre0512/hon.git
synced 2026-06-19 19:26:54 +02:00
Fix applance connection handling
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user