From 9864c427ccba6f720fcca3eabcaa6e54780c1cae Mon Sep 17 00:00:00 2001 From: mrrstux Date: Mon, 16 Dec 2024 17:10:13 +0100 Subject: [PATCH] Remove duplicated local temp calibration entity. Add support for newer TRV1 thermostat. --- zhaquirks/bosch/rbsh_rth0_zb_eu.py | 11 ----------- zhaquirks/bosch/rbsh_trv0_zb_eu.py | 12 +----------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/zhaquirks/bosch/rbsh_rth0_zb_eu.py b/zhaquirks/bosch/rbsh_rth0_zb_eu.py index cdc5210544..b1a34e22a7 100644 --- a/zhaquirks/bosch/rbsh_rth0_zb_eu.py +++ b/zhaquirks/bosch/rbsh_rth0_zb_eu.py @@ -168,16 +168,5 @@ class AttributeDefs(UserInterface.AttributeDefs): translation_key="ctrl_sequence_of_oper", fallback_name="Control sequence", ) - # Local temperature calibration. - .number( - Thermostat.AttributeDefs.local_temperature_calibration.name, - BoschThermostatCluster.cluster_id, - min_value=-5, - max_value=5, - step=0.1, - multiplier=0.1, - translation_key="local_temperature_calibration", - fallback_name="Local temperature offset", - ) .add_to_registry() ) diff --git a/zhaquirks/bosch/rbsh_trv0_zb_eu.py b/zhaquirks/bosch/rbsh_trv0_zb_eu.py index d04da689a9..7bc766ea14 100644 --- a/zhaquirks/bosch/rbsh_trv0_zb_eu.py +++ b/zhaquirks/bosch/rbsh_trv0_zb_eu.py @@ -482,6 +482,7 @@ async def write_attributes( ( QuirkBuilder("BOSCH", "RBSH-TRV0-ZB-EU") + .applies_to("BOSCH", "RBSH-TRV1-ZB-EU") .replaces(BoschThermostatCluster) .replaces(BoschUserInterfaceCluster) # Operating mode - read-only: controlled automatically through Thermostat.system_mode (HAVC mode). @@ -584,16 +585,5 @@ async def write_attributes( translation_key="ctrl_sequence_of_oper", fallback_name="Control sequence", ) - # Local temperature calibration. - .number( - Thermostat.AttributeDefs.local_temperature_calibration.name, - BoschThermostatCluster.cluster_id, - min_value=-5, - max_value=5, - step=0.1, - multiplier=0.1, - translation_key="local_temperature_calibration", - fallback_name="Local temperature offset", - ) .add_to_registry() )