diff --git a/zhaquirks/develco/open_close.py b/zhaquirks/develco/open_close.py index c2bac19bfb..0fd68553ba 100644 --- a/zhaquirks/develco/open_close.py +++ b/zhaquirks/develco/open_close.py @@ -16,16 +16,28 @@ class DevelcoPowerConfiguration(PowerConfigurationCluster): MAX_VOLTS = 3.0 +base_quirk = ( + QuirkBuilder() + .replaces(DevelcoIasZone, endpoint_id=35) + .replaces(DevelcoPowerConfiguration, endpoint_id=35) + # The binary input cluster is a duplicate + .prevent_default_entity_creation(endpoint_id=35, cluster_id=BinaryInput.cluster_id) +) + +# Entry Sensor 2 Pro, no tamper ( - QuirkBuilder("frient A/S", "WISZB-131") + base_quirk.clone() + .applies_to("frient A/S", "WISZB-131") + .add_to_registry() +) # fmt: skip + +# Entry Sensor Pro + Entry Sensor (basic), with tamper +( + base_quirk.clone() .applies_to("Develco Products A/S", "WISZB-120") .applies_to("frient A/S", "WISZB-120") .applies_to("Develco Products A/S", "WISZB-121") .applies_to("frient A/S", "WISZB-121") - .replaces(DevelcoIasZone, endpoint_id=35) - .replaces(DevelcoPowerConfiguration, endpoint_id=35) - # The binary input cluster is a duplicate - .prevent_default_entity_creation(endpoint_id=35, cluster_id=BinaryInput.cluster_id) .binary_sensor( endpoint_id=35, cluster_id=IasZone.cluster_id,