Skip to content

Commit 8f4b42e

Browse files
committed
Fix RoborockSession
1 parent 9ccb258 commit 8f4b42e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roborock/mqtt/roborock_session.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
BACKOFF_MULTIPLIER = 1.5
3232

3333

34-
class RoorockMqttSession(MqttSession):
34+
class RoborockMqttSession(MqttSession):
3535
"""An MQTT session for sending and receiving messages.
3636
3737
You can start a session invoking the start() method which will connect to
@@ -74,7 +74,7 @@ async def start(self) -> None:
7474
await start_future
7575

7676
async def close(self) -> None:
77-
"""Cancels the mqtt loop and shutdown the client library."""
77+
"""Cancels the MQTT loop and shutdown the client library."""
7878
if self._background_task:
7979
self._background_task.cancel()
8080
try:
@@ -158,7 +158,7 @@ async def _mqtt_client(self, params: MqttParams) -> aiomqtt.Client:
158158
self._client = None
159159

160160
async def _process_message_loop(self, client: aiomqtt.Client) -> None:
161-
_LOGGER.debug("Processing mqtt messages")
161+
_LOGGER.debug("Processing MQTT messages")
162162
async for message in client.messages:
163163
_LOGGER.debug("Received message: %s", message)
164164
for listener in self._listeners.get(message.topic.value) or []:
@@ -208,6 +208,6 @@ async def create_mqtt_session(params: MqttParams) -> MqttSession:
208208
raise an exception if initial attempt to connect fails. Once connected,
209209
the session will retry connecting on failure in the background.
210210
"""
211-
session = RoorockMqttSession(params)
211+
session = RoborockMqttSession(params)
212212
await session.start()
213213
return session

0 commit comments

Comments
 (0)