Check remote control only if available, fix #50
This commit is contained in:
@ -243,7 +243,7 @@ class HonNumberEntity(HonEntity, NumberEntity):
|
||||
else:
|
||||
return (
|
||||
super().available
|
||||
and self._device.get("remoteCtrValid") == "1"
|
||||
and self._device.get("remoteCtrValid", "1") == "1"
|
||||
and self._device.get("attributes.lastConnEvent.category")
|
||||
!= "DISCONNECTED"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user