Skip to content

Commit

Permalink
Use lcl cal num
Browse files Browse the repository at this point in the history
  • Loading branch information
prairiesnpr committed Feb 12, 2025
1 parent 274e73d commit 00ec6dd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions zhaquirks/tuya/tuya_trv.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,16 @@ async def write_attributes(self, attributes, manufacturer=None):
translation_key="scale_protection",
fallback_name="Scale protection",
)
.tuya_dp( # z2m has this for DP 114 also?
.tuya_number(
dp_id=47,
ep_attribute=TuyaThermostatV2.ep_attribute,
attribute_name=TuyaThermostatV2.AttributeDefs.local_temperature_calibration.name,
converter=lambda x: x,
dp_converter=lambda x: 0xFFFFFFFF - x if x > 6 else x,
type=t.uint32_t,
min_value=-6,
max_value=6,
unit=UnitOfTemperature.CELSIUS,
step=1,
translation_key="local_temperature_calibration",
fallback_name="Local temperature calibration",
)
.tuya_switch(
dp_id=101,
Expand Down

0 comments on commit 00ec6dd

Please sign in to comment.