diff --git a/homeassistant/components/zha/switch.py b/homeassistant/components/zha/switch.py index fd725bdb529c5..bfb9e28dbd000 100644 --- a/homeassistant/components/zha/switch.py +++ b/homeassistant/components/zha/switch.py @@ -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"} ) @@ -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"},