Skip to content

Commit

Permalink
Fix api disconnections
Browse files Browse the repository at this point in the history
  • Loading branch information
humbertogontijo committed Jan 3, 2023
1 parent 178635d commit a860c74
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions custom_components/roborock/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,8 @@ async def _connect(self):
self.client.reconnect()
else:
_LOGGER.debug("Connecting to mqtt")
properties = Properties(PacketTypes.CONNECT)
properties.SessionExpiryInterval = SESSION_EXPIRY_INTERVAL
self.client.connect(host=self._mqtt_host, port=self._mqtt_port,
clean_start=mqtt.MQTT_CLEAN_START_FIRST_ONLY,
properties=properties,
keepalive=MQTT_KEEPALIVE)
try:
(_, err) = await connection_queue.async_get(timeout=QUEUE_TIMEOUT)
Expand Down

0 comments on commit a860c74

Please sign in to comment.