Skip to content

Commit

Permalink
Auto configure: Set 0.1 as default precsion #92
Browse files Browse the repository at this point in the history
* Most of the thermostat I saw it always reporting temp scaled x10.
  • Loading branch information
xZetsubou committed Jan 2, 2024
1 parent 786031e commit a90175d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions custom_components/localtuya/core/tuya_devices/climates.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def localtuya_climate(
preset_set=None,
unit=None,
values_precsion=0.1,
target_precision=None,
target_precision=0.1,
includes_off_mode=True,
) -> dict:
"""Create localtuya climate configs"""
Expand Down Expand Up @@ -77,8 +77,8 @@ def localtuya_climate(
temp_step=1,
actions_set="heating/cooling",
unit=UNIT_C,
values_precsion=1.0,
target_precision=1.0,
values_precsion=0.1,
target_precision=0.1,
),
)
),
Expand All @@ -94,8 +94,8 @@ def localtuya_climate(
custom_configs=localtuya_climate(
temp_step=1,
actions_set="heating/warming",
values_precsion=1.0,
target_precision=1.0,
values_precsion=0.1,
target_precision=0.1,
preset_set="auto/smart",
),
)
Expand All @@ -113,8 +113,8 @@ def localtuya_climate(
temp_step=1,
actions_set="heating/warming",
unit=UNIT_C,
values_precsion=1.0,
target_precision=1.0,
values_precsion=0.1,
target_precision=0.1,
preset_set="auto/manual/smart/comfortable/eco",
),
),
Expand All @@ -134,8 +134,8 @@ def localtuya_climate(
temp_step=1,
actions_set="True/False",
unit=UNIT_C,
values_precsion=1.0,
target_precision=1.0,
values_precsion=0.1,
target_precision=0.1,
),
),
),
Expand All @@ -153,8 +153,8 @@ def localtuya_climate(
temp_step=1,
actions_set="opened/closed",
unit=UNIT_C,
values_precsion=1.0,
target_precision=1.0,
values_precsion=0.1,
target_precision=0.1,
),
),
),
Expand Down

0 comments on commit a90175d

Please sign in to comment.