Fix applance connection handling

This commit is contained in:
Andre Basche 2024-03-29 14:48:35 +01:00
parent a6c2c3e992
commit 0e26b4a0f7
7 changed files with 8 additions and 8 deletions

View file

@ -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