Skip to content

Commit aa7b32d

Browse files
authored
Clean up Third Reality switch quirk 3RSS009Z (#4443)
1 parent 074ca5e commit aa7b32d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

zhaquirks/thirdreality/switch_v2.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from zigpy.zcl.foundation import BaseAttributeDefs, ZCLAttributeDef
1111

1212

13-
class THIRD_REALITY_Switch_CLUSTER(CustomCluster):
13+
class ThirdRealitySwitchCluster(CustomCluster):
1414
"""Third Reality's Switch private cluster."""
1515

1616
cluster_id = 0xFF02
@@ -33,30 +33,30 @@ class AttributeDefs(BaseAttributeDefs):
3333

3434
(
3535
QuirkBuilder("Third Reality, Inc", "3RSS009Z")
36-
.replaces(THIRD_REALITY_Switch_CLUSTER)
36+
.replaces(ThirdRealitySwitchCluster)
3737
.number(
38-
attribute_name=THIRD_REALITY_Switch_CLUSTER.AttributeDefs.on_to_off_delay.name,
39-
cluster_id=THIRD_REALITY_Switch_CLUSTER.cluster_id,
38+
attribute_name=ThirdRealitySwitchCluster.AttributeDefs.on_to_off_delay.name,
39+
cluster_id=ThirdRealitySwitchCluster.cluster_id,
4040
endpoint_id=1,
4141
min_value=0,
4242
max_value=65535,
43+
mode="box",
4344
unit=UnitOfTime.SECONDS,
4445
device_class=NumberDeviceClass.DURATION,
45-
step=1,
46-
translation_key="on_to_off_delay",
47-
fallback_name="On to off delay",
46+
translation_key="turn_off_delay",
47+
fallback_name="Turn off delay",
4848
)
4949
.number(
50-
attribute_name=THIRD_REALITY_Switch_CLUSTER.AttributeDefs.off_to_on_delay.name,
51-
cluster_id=THIRD_REALITY_Switch_CLUSTER.cluster_id,
50+
attribute_name=ThirdRealitySwitchCluster.AttributeDefs.off_to_on_delay.name,
51+
cluster_id=ThirdRealitySwitchCluster.cluster_id,
5252
endpoint_id=1,
5353
min_value=0,
5454
max_value=65535,
55+
mode="box",
5556
unit=UnitOfTime.SECONDS,
5657
device_class=NumberDeviceClass.DURATION,
57-
step=1,
58-
translation_key="off_to_on_delay",
59-
fallback_name="Off to on delay",
58+
translation_key="turn_on_delay",
59+
fallback_name="Turn on delay",
6060
)
6161
.add_to_registry()
6262
)

0 commit comments

Comments
 (0)