From 328825b975a1db486707a189de6113cce7c3f396 Mon Sep 17 00:00:00 2001 From: Bander <46300268+xZetsubou@users.noreply.github.com> Date: Tue, 30 Jan 2024 07:26:52 +0300 Subject: [PATCH] Fix temperature step 1 increment xZetsubou/hass-localtuya#120 --- custom_components/localtuya/climate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/localtuya/climate.py b/custom_components/localtuya/climate.py index 874f66fbe..a768eb1ec 100644 --- a/custom_components/localtuya/climate.py +++ b/custom_components/localtuya/climate.py @@ -279,7 +279,8 @@ def target_temperature(self): @property def target_temperature_step(self): """Return the supported step of target temperature.""" - return self._config.get(CONF_TEMPERATURE_STEP, DEFAULT_TEMPERATURE_STEP) + target_step = self._config.get(CONF_TEMPERATURE_STEP, DEFAULT_TEMPERATURE_STEP) + return float(target_step) @property def fan_mode(self):