There was an error while loading. Please reload this page.
1 parent 4f2d298 commit a595411Copy full SHA for a595411
1 file changed
roborock/devices/rpc/v1_channel.py
@@ -204,7 +204,13 @@ def is_local_connected(self) -> bool:
204
205
@property
206
def is_mqtt_connected(self) -> bool:
207
- """Return whether MQTT connection is available."""
+ """Return whether MQTT connection is available for the device.
208
+
209
+ This requires the MQTT session to be connected to the broker and
210
+ the subscription to the device's topic to have successfully
211
+ been established (to handle cases where the device is offline
212
+ or deleted).
213
+ """
214
return self._mqtt_channel.is_connected and self._mqtt_unsub is not None
215
216
0 commit comments