Explorar o código

Don't remove the shutdown handler while running it

Tom Parker-Shemilt %!s(int64=2) %!d(string=hai) anos
pai
achega
002029bfc7
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      custom_components/tuya_local/device.py

+ 0 - 3
custom_components/tuya_local/device.py

@@ -161,9 +161,6 @@ class TuyaLocalDevice(object):
     async def async_stop(self, event=None):
         _LOGGER.debug("Stopping monitor loop for %s", self.name)
         self._running = False
-        if self._shutdown_listener:
-            self._shutdown_listener()
-            self._shutdown_listener = None
         self._children.clear()
         self._force_dps.clear()
         if self._refresh_task: