فهرست منبع

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):
     async def async_stop(self, event=None):
         _LOGGER.debug("Stopping monitor loop for %s", self.name)
         _LOGGER.debug("Stopping monitor loop for %s", self.name)
         self._running = False
         self._running = False
-        if self._shutdown_listener:
-            self._shutdown_listener()
-            self._shutdown_listener = None
         self._children.clear()
         self._children.clear()
         self._force_dps.clear()
         self._force_dps.clear()
         if self._refresh_task:
         if self._refresh_task: