@@ -238,12 +238,12 @@ def set_hvac_mode(self, operation_mode):
238238 if self ._target_temperature :
239239 self ._controller .set_temperature (self ._target_temperature )
240240
241- self .hass . async_add_job ( self . schedule_update_ha_state , False )
241+ self .schedule_update_ha_state ( False )
242242
243243 def turn_on (self ):
244244 """Turn thermostat on."""
245245 self ._controller .set_power_on ()
246- self .hass . async_add_job ( self . schedule_update_ha_state , False )
246+ self .schedule_update_ha_state ( False )
247247
248248 def turn_off (self ):
249249 """Turn thermostat off."""
@@ -276,8 +276,8 @@ async def async_update(self):
276276 """Copy values from controller dictionary to climate device."""
277277 if not self ._controller .is_connected :
278278 await asyncio .sleep (
279- 60
280- ) # per device specs, wait min 1 sec before re-connecting
279+ 5
280+ ) # per device specs, wait minimum 1 second before re-connecting
281281 await self .hass .async_add_executor_job (self ._controller .connect )
282282 self ._connection_retries += 1
283283 else :
@@ -326,7 +326,7 @@ def update_callback(self):
326326 """Let HA know there has been an update from the controller."""
327327 _LOGGER .debug ("Intesisbox sent a status update." )
328328 if self .hass :
329- self .hass . async_add_job ( self . schedule_update_ha_state , True )
329+ self .schedule_update_ha_state ( True )
330330
331331 @property
332332 def min_temp (self ):
0 commit comments