mirror of
https://github.com/Andre0512/hon.git
synced 2026-05-07 09:54:41 +02:00
Deactivate contols when remotectrl disabled, fixes #28
This commit is contained in:
@@ -80,3 +80,8 @@ class HonFeatureRequestButton(HonEntity, ButtonEntity):
|
||||
pyhon_version = pkg_resources.get_distribution("pyhon").version
|
||||
info = f"Device Info:\n{self._device.diagnose}pyhOnVersion: {pyhon_version}"
|
||||
_LOGGER.error(info)
|
||||
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Return True if entity is available."""
|
||||
return super().available and self._device.get("remoteCtrValid") == "1"
|
||||
|
||||
Reference in New Issue
Block a user