mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 18:41:44 +02:00
fix: electrasmart - cast temperature to int in set_temperature (#94368)
fix: cast temperature to int
This commit is contained in:
committed by
Paulus Schoutsen
parent
3434d74993
commit
6029e23ab7
@@ -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:
|
||||||
|
Reference in New Issue
Block a user