We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 987cc0b commit c64e999Copy full SHA for c64e999
roborock/cloud_api.py
@@ -130,11 +130,11 @@ def _mqtt_on_disconnect(
130
client: mqtt.Client,
131
data: object,
132
flags: dict[str, int],
133
- rc: ReasonCode,
+ rc: ReasonCode | None,
134
properties: mqtt.Properties | None = None,
135
):
136
try:
137
- exc = RoborockException(str(rc)) if rc.is_failure else None
+ exc = RoborockException(str(rc)) if rc is not None and rc.is_failure else None
138
super().on_connection_lost(exc)
139
connection_queue = self._waiting_queue.get(DISCONNECT_REQUEST_ID)
140
if connection_queue:
0 commit comments