From 4c7e17c5c68a64fab88d495893a700036d5b27bb Mon Sep 17 00:00:00 2001 From: tehbrd Date: Thu, 3 Dec 2020 10:58:10 +1000 Subject: [PATCH] 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 Co-authored-by: Paulus Schoutsen --- homeassistant/components/intesishome/climate.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/intesishome/climate.py b/homeassistant/components/intesishome/climate.py index 57912d7d24d..a41161c7a6e 100644 --- a/homeassistant/components/intesishome/climate.py +++ b/homeassistant/components/intesishome/climate.py @@ -374,9 +374,11 @@ class IntesisAC(ClimateEntity): reconnect_minutes, ) # 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: # Connection has been restored