mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +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
|
# temperature
|
||||||
elif attr == ATTR_TEMPERATURE:
|
elif attr == ATTR_TEMPERATURE:
|
||||||
try:
|
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:
|
except ValueError:
|
||||||
_LOGGER.error("Invalid temperature %s", value)
|
_LOGGER.error("Invalid temperature %s", value)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user