mirror of
https://github.com/Andre0512/hon.git
synced 2026-06-21 03:42:57 +02:00
Fix applance connection handling
This commit is contained in:
@@ -507,7 +507,7 @@ class HonControlSwitchEntity(HonEntity, SwitchEntity):
|
||||
return (
|
||||
super().available
|
||||
and int(self._device.get("remoteCtrValid", 1)) == 1
|
||||
and self._device.get("attributes.lastConnEvent.category") != "DISCONNECTED"
|
||||
and self._device.connection
|
||||
)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user