mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix test_scenes_with_entity (#30684)
Don't assume any particular order for returned scenes; it's undefined (currently uses dict values()).
This commit is contained in:
@@ -229,7 +229,7 @@ async def test_scenes_with_entity(hass):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
assert ha_scene.scenes_with_entity(hass, "light.kitchen") == [
|
assert sorted(ha_scene.scenes_with_entity(hass, "light.kitchen")) == [
|
||||||
"scene.scene_1",
|
"scene.scene_1",
|
||||||
"scene.scene_3",
|
"scene.scene_3",
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user