From aa6f551b33833fa96192d23253e6b1808f51c752 Mon Sep 17 00:00:00 2001 From: Johann Vanackere Date: Wed, 30 Mar 2022 20:03:22 +0200 Subject: [PATCH] Remove Daikin int conversion to allow decimal target temperature steps (#61616) * Remove int conversion in order to allow decimal target temperature steps * Convert to float and keep 1 digit --- homeassistant/components/daikin/climate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/daikin/climate.py b/homeassistant/components/daikin/climate.py index 0ac6b0cf353..4b97c8dc21a 100644 --- a/homeassistant/components/daikin/climate.py +++ b/homeassistant/components/daikin/climate.py @@ -163,7 +163,9 @@ class DaikinClimate(ClimateEntity): # temperature elif attr == ATTR_TEMPERATURE: try: - values[HA_ATTR_TO_DAIKIN[ATTR_TARGET_TEMPERATURE]] = str(int(value)) + values[HA_ATTR_TO_DAIKIN[ATTR_TARGET_TEMPERATURE]] = str( + round(float(value), 1) + ) except ValueError: _LOGGER.error("Invalid temperature %s", value)