We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d475f76 commit baf473cCopy full SHA for baf473c
zhaquirks/tuya/ts0001_switch.py
@@ -5,7 +5,7 @@
5
from zigpy.zcl.clusters.homeautomation import ElectricalMeasurement
6
from zigpy.zcl.clusters.smartenergy import Metering
7
8
-from zhaquirks.tuya import TuyaZBOnOffAttributeCluster
+from zhaquirks.tuya import TuyaZBExternalSwitchTypeCluster, TuyaZBOnOffAttributeCluster
9
10
11
class CustomElectricalMeasurement(ElectricalMeasurement, CustomCluster):
@@ -47,5 +47,6 @@ class CustomMetering(Metering, CustomCluster):
47
.replaces(CustomMetering)
48
.replaces(CustomElectricalMeasurement)
49
.replaces(TuyaZBOnOffAttributeCluster)
50
+ .replaces(TuyaZBExternalSwitchTypeCluster)
51
.add_to_registry()
52
)
0 commit comments