Skip to content

Commit 20bf54b

Browse files
fix: lint
1 parent 0abfe45 commit 20bf54b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

roborock/cloud_api.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ def update_client_id(self):
104104
self._client_id = mqtt.base62(uuid.uuid4().int, padding=22)
105105

106106
def _async_check_keepalive(self) -> None:
107-
now = mqtt.time_func()
108-
# noinspection PyUnresolvedReferences
109-
if (
110-
now - self._last_disconnection > self._keepalive**2 # type: ignore[attr-defined]
111-
and now - self._last_device_msg_in > self._keepalive # type: ignore[attr-defined]
112-
):
113-
self._ping_t = self._last_device_msg_in
107+
now = mqtt.time_func()
108+
# noinspection PyUnresolvedReferences
109+
if (
110+
now - self._last_disconnection > self._keepalive**2 # type: ignore[attr-defined]
111+
and now - self._last_device_msg_in > self._keepalive # type: ignore[attr-defined]
112+
):
113+
self._ping_t = self._last_device_msg_in
114114

115115
def _check_keepalive(self) -> None:
116116
self._async_check_keepalive()

0 commit comments

Comments
 (0)