Skip to content

Commit

Permalink
add bool for hvac off
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou authored Dec 19, 2023
1 parent fc6476b commit ccc845e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/localtuya/core/tuya_devices/climates.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
CONF_PRESET_SET,
CONF_TARGET_PRECISION,
CONF_TEMPERATURE_STEP,
CONF_HVAC_ADD_OFF,
)


Expand All @@ -40,6 +41,7 @@ def localtuya_climate(
unit=None,
values_precsion=0.1,
target_precision=None,
includes_off_mode=True,
) -> dict:
"""Create localtuya climate configs"""
data = {ATTR_MIN_TEMP: DEFAULT_MIN_TEMP, ATTR_MAX_TEMP: DEFAULT_MAX_TEMP}
Expand All @@ -52,6 +54,7 @@ def localtuya_climate(
CONF_TEMPERATURE_UNIT: unit,
CONF_PRECISION: values_precsion,
CONF_TARGET_PRECISION: target_precision,
CONF_HVAC_ADD_OFF: includes_off_mode,
}.items():
if conf:
data.update({key: conf})
Expand Down

0 comments on commit ccc845e

Please # to comment.