Skip to content

Commit db41030

Browse files
authored
Restore BinaryInput entity in Legrand Switch with Neutral (#4350)
The binary input entity seems to be non-functional for the majority of the users, but someone has reported the opposite (see issue #4337). For now, the entity is restored.
1 parent 6602383 commit db41030

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

zhaquirks/legrand/switch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
"""Module for Legrand switches (without dimming functionality)."""
22

33
from zigpy.quirks.v2 import QuirkBuilder
4-
from zigpy.zcl.clusters.general import BinaryInput, OnOff
4+
from zigpy.zcl.clusters.general import OnOff
55

66
from zhaquirks.legrand import LEGRAND, LegrandCluster, LegrandIdentify
77

88
(
99
QuirkBuilder(f" {LEGRAND}", " Light switch with neutral")
1010
.replaces(LegrandCluster)
1111
.replaces(LegrandIdentify)
12-
.prevent_default_entity_creation(endpoint_id=1, cluster_id=BinaryInput.cluster_id)
12+
# It seems that the binary input is mostly non-functional. However some users report
13+
# that the BinaryInput is actually working for them. So we leave it commented out for now.
14+
# .prevent_default_entity_creation(endpoint_id=1, cluster_id=BinaryInput.cluster_id)
1315
.prevent_default_entity_creation(
1416
endpoint_id=1,
1517
cluster_id=OnOff.cluster_id,

0 commit comments

Comments
 (0)