|
31 | 31 | BACKOFF_MULTIPLIER = 1.5
|
32 | 32 |
|
33 | 33 |
|
34 |
| -class RoorockMqttSession(MqttSession): |
| 34 | +class RoborockMqttSession(MqttSession): |
35 | 35 | """An MQTT session for sending and receiving messages.
|
36 | 36 |
|
37 | 37 | You can start a session invoking the start() method which will connect to
|
@@ -74,7 +74,7 @@ async def start(self) -> None:
|
74 | 74 | await start_future
|
75 | 75 |
|
76 | 76 | 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.""" |
78 | 78 | if self._background_task:
|
79 | 79 | self._background_task.cancel()
|
80 | 80 | try:
|
@@ -158,7 +158,7 @@ async def _mqtt_client(self, params: MqttParams) -> aiomqtt.Client:
|
158 | 158 | self._client = None
|
159 | 159 |
|
160 | 160 | async def _process_message_loop(self, client: aiomqtt.Client) -> None:
|
161 |
| - _LOGGER.debug("Processing mqtt messages") |
| 161 | + _LOGGER.debug("Processing MQTT messages") |
162 | 162 | async for message in client.messages:
|
163 | 163 | _LOGGER.debug("Received message: %s", message)
|
164 | 164 | for listener in self._listeners.get(message.topic.value) or []:
|
@@ -208,6 +208,6 @@ async def create_mqtt_session(params: MqttParams) -> MqttSession:
|
208 | 208 | raise an exception if initial attempt to connect fails. Once connected,
|
209 | 209 | the session will retry connecting on failure in the background.
|
210 | 210 | """
|
211 |
| - session = RoorockMqttSession(params) |
| 211 | + session = RoborockMqttSession(params) |
212 | 212 | await session.start()
|
213 | 213 | return session
|
0 commit comments