We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c9323a commit 765d22cCopy full SHA for 765d22c
tests/devices/test_device_manager.py
@@ -182,6 +182,14 @@ async def test_ready_callback(home_data: HomeData) -> None:
182
device = ready_devices[0]
183
assert device.duid == "abc123"
184
185
+ # Verify that adding a ready callback to an already connected device will
186
+ # invoke the callback immediately.
187
+ more_ready_device: list[RoborockDevice] = []
188
+ device.add_ready_callback(more_ready_device.append)
189
+ assert len(more_ready_device) == 1
190
+ assert more_ready_device[0].duid == "abc123"
191
+
192
193
await device_manager.close()
194
195
0 commit comments