This commit is contained in:
J. Nick Koston
2025-06-23 13:56:20 +02:00
parent 80f8f3a4c5
commit 414a6dbcc8

View File

@@ -1629,6 +1629,9 @@ async def test_sub_device_cleanup(
devices=sub_devices_updated,
)
# Update the mock client to return the new device info
mock_client.device_info = AsyncMock(return_value=device.device_info)
# Simulate reconnection which triggers device registry update
await device.mock_connect()
await hass.async_block_till_done()