Skip to content

Commit 2a96ada

Browse files
authored
Fix int data type for local calibration value of Tuya TRV (#3873)
1 parent ba3c7c7 commit 2a96ada

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zhaquirks/tuya/tuya_trv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __init__(self, *args, **kwargs):
111111
.tuya_number(
112112
dp_id=27,
113113
attribute_name=TuyaThermostatV2.AttributeDefs.local_temperature_calibration.name,
114-
type=t.uint32_t,
114+
type=t.int32s,
115115
min_value=-6,
116116
max_value=6,
117117
unit=UnitOfTemperature.CELSIUS,
@@ -278,7 +278,7 @@ def __init__(self, *args, **kwargs):
278278
.tuya_number(
279279
dp_id=101,
280280
attribute_name=TuyaThermostatV2.AttributeDefs.local_temperature_calibration.name,
281-
type=t.uint32_t,
281+
type=t.int32s,
282282
min_value=-6,
283283
max_value=6,
284284
unit=UnitOfTemperature.CELSIUS,
@@ -351,7 +351,7 @@ def __init__(self, *args, **kwargs):
351351
.tuya_number(
352352
dp_id=47,
353353
attribute_name=TuyaThermostatV2.AttributeDefs.local_temperature_calibration.name,
354-
type=t.uint32_t,
354+
type=t.int32s,
355355
min_value=-6,
356356
max_value=6,
357357
unit=UnitOfTemperature.CELSIUS,

0 commit comments

Comments
 (0)