4
0
Jason Rumney 2 жил өмнө
parent
commit
f3f0c2e858

+ 3 - 1
custom_components/tuya_local/device.py

@@ -263,7 +263,9 @@ class TuyaLocalDevice(object):
                     # the protocol version, which seems to require a fresh
                     # connection.
                     persist = not self.should_poll
-                    _LOGGER.debug("%s persistant connection set to %s", self.name, persist)
+                    _LOGGER.debug(
+                        "%s persistant connection set to %s", self.name, persist
+                    )
                     self._api.set_socketPersistent(persist)
                     if self._api.parent:
                         self._api.parent.set_socketPersistent(persist)