mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-17 08:34:22 -04:00
Check remote control only if available, fix #50
This commit is contained in:
parent
617ea0f99a
commit
fae4c4c879
4 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue