Explorar o código

cleanup(device): remove unused temp variable

Jason Rumney hai 20 horas
pai
achega
986d71e76d
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      custom_components/tuya_local/device.py

+ 0 - 1
custom_components/tuya_local/device.py

@@ -461,7 +461,6 @@ class TuyaLocalDevice(object):
                     self._api.parent.set_socketPersistent(False)
                 force_backoff = True
 
-            socket = self._api.parent.socket if self._api.parent else self._api.socket
             if not self.has_returned_state or wifi_api.socket is None:
                 force_backoff = True
             await asyncio.sleep(5 if force_backoff else 0.1)