mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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
This commit is contained in:
parent
4ca4180fd2
commit
aa6f551b33
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user