Преглед изворни кода

Don't remove the shutdown handler while running it

Tom Parker-Shemilt пре 2 година
родитељ
комит
002029bfc7
1 измењених фајлова са 0 додато и 3 уклоњено
  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: