Skip to content

Commit

Permalink
Remove duplicated local temp calibration entity.
Browse files Browse the repository at this point in the history
Add support for newer TRV1 thermostat.
  • Loading branch information
mrrstux committed Jan 3, 2025
1 parent 34b2d08 commit 9864c42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
11 changes: 0 additions & 11 deletions zhaquirks/bosch/rbsh_rth0_zb_eu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
12 changes: 1 addition & 11 deletions zhaquirks/bosch/rbsh_trv0_zb_eu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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()
)

0 comments on commit 9864c42

Please sign in to comment.