mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
fix: electrasmart - cast temperature to int in set_temperature (#94368)
fix: cast temperature to int
This commit is contained in:
parent
117ab4a0e5
commit
26b78d2a7a
@ -250,7 +250,7 @@ class ElectraClimateEntity(ClimateEntity):
|
|||||||
if (temperature := kwargs.get(ATTR_TEMPERATURE)) is None:
|
if (temperature := kwargs.get(ATTR_TEMPERATURE)) is None:
|
||||||
raise ValueError("No target temperature provided")
|
raise ValueError("No target temperature provided")
|
||||||
|
|
||||||
self._electra_ac_device.set_temperature(temperature)
|
self._electra_ac_device.set_temperature(int(temperature))
|
||||||
await self._async_operate_electra_ac()
|
await self._async_operate_electra_ac()
|
||||||
|
|
||||||
def _update_device_attrs(self) -> None:
|
def _update_device_attrs(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user