diff --git a/custom_components/casambi/casambi/CasambiController.py b/custom_components/casambi/casambi/CasambiController.py index f5bc7b2..5796a79 100644 --- a/custom_components/casambi/casambi/CasambiController.py +++ b/custom_components/casambi/casambi/CasambiController.py @@ -1,6 +1,7 @@ """ Support for Casambi lights. """ + import logging import aiocasambi @@ -131,7 +132,7 @@ def signalling_callback(self, signal, data): self.set_all_lights_offline() _LOGGER.debug("signalling_callback: creating reconnection") - self._hass.loop.create_task(self.async_reconnect()) + self._hass.loop.async_create_task(self.async_reconnect()) elif signal == SIGNAL_CONNECTION_STATE and (data == STATE_DISCONNECTED): _LOGGER.debug("signalling_callback websocket STATE_DISCONNECTED") @@ -139,7 +140,7 @@ def signalling_callback(self, signal, data): self.set_all_lights_offline() _LOGGER.debug("signalling_callback: creating reconnection") - self._hass.loop.create_task(self.async_reconnect()) + self._hass.loop.async_create_task(self.async_reconnect()) elif signal == SIGNAL_UNIT_PULL_UPDATE: # Update units that is specified for unit in data: diff --git a/custom_components/casambi/manifest.json b/custom_components/casambi/manifest.json index b7b916e..ee87f7d 100644 --- a/custom_components/casambi/manifest.json +++ b/custom_components/casambi/manifest.json @@ -14,6 +14,6 @@ "aiocasambi==0.285" ], "ssdp": [], - "version": "0.127", + "version": "0.128", "zeroconf": [] } \ No newline at end of file