Skip to content

Commit 69bdc15

Browse files
Prevent battery entity creation for frient Electricity Meter Interface 2, P1 (EMIZB-151) (#4981)
1 parent 3bfbd04 commit 69bdc15

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

zhaquirks/develco/emi_p1.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from zigpy.quirks.v2 import QuirkBuilder
44

5+
from zhaquirks import PowerConfigurationCluster
6+
57
(
68
QuirkBuilder("frient A/S", "EMIZB-151")
79
# These endpoints are duplicates and completely broken: each one is a "mirror" of
@@ -11,5 +13,10 @@
1113
.prevent_default_entity_creation(endpoint_id=65)
1214
.prevent_default_entity_creation(endpoint_id=66)
1315
.prevent_default_entity_creation(endpoint_id=67)
16+
# No need for battery entity as the device is powered from the meter.
17+
.prevent_default_entity_creation(
18+
endpoint_id=2,
19+
cluster_id=PowerConfigurationCluster.cluster_id,
20+
)
1421
.add_to_registry()
1522
)

0 commit comments

Comments
 (0)