Explorar el Código

Update device.py

czarau hace 1 año
padre
commit
c4dcae981d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      custom_components/tuya_local/device.py

+ 2 - 2
custom_components/tuya_local/device.py

@@ -254,9 +254,9 @@ class TuyaLocalDevice(object):
 
     def pause(self):
         self._temporary_poll = True
-        self._api.setSocketPersistent(False)
+        self._api.set_socketPersistent(False)
         if self._api.parent:
-            self._api.parent.setSocketPersistent(False)
+            self._api.parent.set_socketPersistent(False)
 
     def resume(self):
         self._temporary_poll = False