mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-20 09:55:06 -04:00
Deactivate contols when remotectrl disabled, fixes #28
This commit is contained in:
parent
74f5887bb2
commit
6935f5f07f
4 changed files with 13 additions and 18 deletions
custom_components/hon
|
@ -99,14 +99,6 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
|
|||
icon="mdi:wifi",
|
||||
translation_key="connection",
|
||||
),
|
||||
HonBinarySensorEntityDescription(
|
||||
key="attributes.parameters.remoteCtrValid",
|
||||
name="Remote Control",
|
||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||
on_value="1",
|
||||
icon="mdi:remote",
|
||||
translation_key="remote_control",
|
||||
),
|
||||
HonBinarySensorEntityDescription(
|
||||
key="attributes.parameters.onOffStatus",
|
||||
name="On",
|
||||
|
@ -125,14 +117,6 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
|
|||
icon="mdi:wifi",
|
||||
translation_key="connection",
|
||||
),
|
||||
HonBinarySensorEntityDescription(
|
||||
key="attributes.parameters.remoteCtrValid",
|
||||
name="Remote Control",
|
||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||
on_value="1",
|
||||
icon="mdi:remote",
|
||||
translation_key="remote_control",
|
||||
),
|
||||
HonBinarySensorEntityDescription(
|
||||
key="attributes.parameters.onOffStatus",
|
||||
name="On",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue