Skip to content

Commit 8890097

Browse files
committed
Remove duplicated local temp calibration entity.
Add support for newer TRV1 thermostat.
1 parent 11eebfc commit 8890097

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

zhaquirks/bosch/rbsh_rth0_zb_eu.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,5 @@ class AttributeDefs(UserInterface.AttributeDefs):
168168
translation_key="ctrl_sequence_of_oper",
169169
fallback_name="Control sequence",
170170
)
171-
# Local temperature calibration.
172-
.number(
173-
Thermostat.AttributeDefs.local_temperature_calibration.name,
174-
BoschThermostatCluster.cluster_id,
175-
min_value=-5,
176-
max_value=5,
177-
step=0.1,
178-
multiplier=0.1,
179-
translation_key="local_temperature_calibration",
180-
fallback_name="Local temperature offset",
181-
)
182171
.add_to_registry()
183172
)

zhaquirks/bosch/rbsh_trv0_zb_eu.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ async def write_attributes(
482482

483483
(
484484
QuirkBuilder("BOSCH", "RBSH-TRV0-ZB-EU")
485+
.applies_to("BOSCH", "RBSH-TRV1-ZB-EU")
485486
.replaces(BoschThermostatCluster)
486487
.replaces(BoschUserInterfaceCluster)
487488
# Operating mode - read-only: controlled automatically through Thermostat.system_mode (HAVC mode).
@@ -584,16 +585,5 @@ async def write_attributes(
584585
translation_key="ctrl_sequence_of_oper",
585586
fallback_name="Control sequence",
586587
)
587-
# Local temperature calibration.
588-
.number(
589-
Thermostat.AttributeDefs.local_temperature_calibration.name,
590-
BoschThermostatCluster.cluster_id,
591-
min_value=-5,
592-
max_value=5,
593-
step=0.1,
594-
multiplier=0.1,
595-
translation_key="local_temperature_calibration",
596-
fallback_name="Local temperature offset",
597-
)
598588
.add_to_registry()
599589
)

0 commit comments

Comments
 (0)