Skip to content

Commit

Permalink
don't restructure file as it is out of scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Caius-Bonus committed Oct 9, 2023
1 parent 175ab83 commit 4adfea4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions homeassistant/components/zha/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,18 @@ class AqaraBuzzerManualMute(
_attr_icon: str = "mdi:volume-off"


@CONFIG_DIAGNOSTIC_MATCH(
cluster_handler_names=CLUSTER_HANDLER_ON_OFF,
models={"TS011F"},
)
class TuyaChildLockSwitch(ZHASwitchConfigurationEntity, id_suffix="child_lock"):
"""Representation of a child lock configuration entity."""

_zcl_attribute: str = "child_lock"
_attr_name = "Child lock"
_attr_icon: str = "mdi:account-lock"


@CONFIG_DIAGNOSTIC_MATCH(
cluster_handler_names="opple_cluster", models={"lumi.sensor_smoke.acn03"}
)
Expand All @@ -578,18 +590,6 @@ class AqaraBuzzerManualAlarm(
_attr_icon: str = "mdi:bullhorn"


@CONFIG_DIAGNOSTIC_MATCH(
cluster_handler_names=CLUSTER_HANDLER_ON_OFF,
models={"TS011F"},
)
class TuyaChildLockSwitch(ZHASwitchConfigurationEntity, id_suffix="child_lock"):
"""Representation of a child lock configuration entity."""

_zcl_attribute: str = "child_lock"
_attr_name = "Child lock"
_attr_icon: str = "mdi:account-lock"


@CONFIG_DIAGNOSTIC_MATCH(
cluster_handler_names=CLUSTER_HANDLER_THERMOSTAT,
quirk_classes={"thermostat.DanfossThermostat"},
Expand Down

0 comments on commit 4adfea4

Please sign in to comment.