瀏覽代碼

Device: use correct boolean value

Jason Rumney 1 年之前
父節點
當前提交
4db298c997
共有 1 個文件被更改,包括 2 次插入2 次删除
  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.setSocketPersistent(False)
         if self._api.parent:
-            self._api.parent.setSocketPersistent(false)
+            self._api.parent.setSocketPersistent(False)
 
     def resume(self):
         self._temporary_poll = False