mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
Fix intesishome passing coroutine to HassJob (#43837)
* Update climate.py Not allowed to pass coroutines to hassjob. * Update climate.py * Lint Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
8e6108b9e1
commit
4c7e17c5c6
@ -374,9 +374,11 @@ class IntesisAC(ClimateEntity):
|
|||||||
reconnect_minutes,
|
reconnect_minutes,
|
||||||
)
|
)
|
||||||
# Schedule reconnection
|
# Schedule reconnection
|
||||||
async_call_later(
|
|
||||||
self.hass, reconnect_minutes * 60, self._controller.connect()
|
async def try_connect(_now):
|
||||||
)
|
await self._controller.connect()
|
||||||
|
|
||||||
|
async_call_later(self.hass, reconnect_minutes * 60, try_connect)
|
||||||
|
|
||||||
if self._controller.is_connected and not self._connected:
|
if self._controller.is_connected and not self._connected:
|
||||||
# Connection has been restored
|
# Connection has been restored
|
||||||
|
Loading…
x
Reference in New Issue
Block a user