Skip to content

Commit 8fb5e10

Browse files
committed
Fix KOF quirks
1 parent fe152a6 commit 8fb5e10

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

zhaquirks/kof/kof_mr101z.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
expect replies at all.
66
"""
77

8+
from zigpy.profiles import zha
89
from zigpy.quirks import CustomCluster
910
from zigpy.quirks.v2 import QuirkBuilder
1011
from zigpy.zcl.clusters.general import (
@@ -65,9 +66,14 @@ class KofLevelControl(NoReplyMixin, CustomCluster, LevelControl):
6566

6667

6768
(
68-
QuirkBuilder("King Of Fans, Inc.", "MR101Z")
69+
# The manufacturer has two spaces in its name
70+
QuirkBuilder("King Of Fans, Inc.", "MR101Z")
6971
# TODO: add support for wildcard matching in `applies_to`
70-
.applies_to("King Of Fans, Inc.", "HDC52EastwindFan")
72+
.applies_to("King Of Fans, Inc.", "HDC52EastwindFan")
73+
.applies_to("King Of Fans, Inc.", "HBUniversalCFRemote")
74+
.replaces_endpoint(
75+
endpoint_id=1, device_type=zha.DeviceType.DIMMABLE_LIGHT
76+
) # was 257
7177
.replaces(KofBasic)
7278
.replaces(KofIdentify)
7379
.replaces(KofGroups)

0 commit comments

Comments
 (0)