Skip to content

Commit 590f347

Browse files
committed
chore: revert mqtt client check
1 parent 8963f4b commit 590f347

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

roborock/cloud_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ def __init__(self, user_data: UserData, device_info: DeviceData, queue_timeout:
7777
async def async_release(self) -> None:
7878
"""Release the MQTT client."""
7979
await super().async_release()
80-
if self._mqtt_client:
81-
await self.event_loop.run_in_executor(None, self._mqtt_client.loop_stop)
80+
await self.event_loop.run_in_executor(None, self._mqtt_client.loop_stop)
8281

8382
def _mqtt_on_connect(self, *args, **kwargs):
8483
_, __, ___, rc, ____ = args

0 commit comments

Comments
 (0)