Skip to content

Commit f252679

Browse files
Update to version 0.1.9
Minor fixes
1 parent 50abf3a commit f252679

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-roborock"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = ""
55
authors = ["humbertogontijo <[email protected]>"]
66
license = "GPL-3.0-only"

roborock/api.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __init__(self, user_data: UserData, device_map: dict[str, RoborockDeviceInfo
106106
self._mqtt_user = rriot.user
107107
self._mqtt_domain = rriot.domain
108108
self._hashed_user = md5hex(self._mqtt_user + ":" + self._mqtt_domain)[2:10]
109-
super().__init__(client_id=self._hashed_user, protocol=mqtt.MQTTv5)
109+
super().__init__(protocol=mqtt.MQTTv5)
110110
url = urlparse(rriot.reference.mqtt)
111111
self._mqtt_host = url.hostname
112112
self._mqtt_port = url.port
@@ -231,13 +231,6 @@ async def on_disconnect(self, _client: mqtt.Client, _, rc, __=None) -> None:
231231
message = f"Roborock mqtt client disconnected (rc: {rc})"
232232
_LOGGER.warning(message)
233233
connection_queue = self._waiting_queue.get(1)
234-
if rc != mqtt.MQTT_ERR_SUCCESS and rc != mqtt.MQTT_ERR_KEEPALIVE:
235-
await self.async_disconnect()
236-
if connection_queue:
237-
await connection_queue.async_put(
238-
(None, VacuumError(rc, message)), timeout=QUEUE_TIMEOUT
239-
)
240-
return
241234
if connection_queue:
242235
await connection_queue.async_put(
243236
(True, None), timeout=QUEUE_TIMEOUT

0 commit comments

Comments
 (0)