Fix flaky test in vesync (#90921)
* Fix flaky test in vesync * Move sorting to the test
This commit is contained in:
parent
86e9f6643f
commit
385630f9b4
2 changed files with 26 additions and 23 deletions
|
@ -85,6 +85,9 @@ async def test_async_get_device_diagnostics__single_fan(
|
|||
diag = await get_diagnostics_for_device(hass, hass_client, config_entry, device)
|
||||
|
||||
assert isinstance(diag, dict)
|
||||
diag["home_assistant"]["entities"] = sorted(
|
||||
diag["home_assistant"]["entities"], key=lambda ent: ent["entity_id"]
|
||||
)
|
||||
assert diag == snapshot(
|
||||
matcher=path_type(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue