mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 14:54:04 +02:00
Ignore independent profile event order in test
This commit is contained in:
parent
48854d1080
commit
0ce69a58a3
1 changed files with 3 additions and 2 deletions
|
|
@ -1891,9 +1891,10 @@ async def test_shared_profiles_track_manual_brightness(
|
|||
hass.states.get(ENTITY_LIGHT_1).attributes[ATTR_BRIGHTNESS]
|
||||
== expected_brightness
|
||||
)
|
||||
assert [event.data[SWITCH_DOMAIN] for event in events] == [
|
||||
# Independent profiles may publish their events in either order.
|
||||
assert sorted(event.data[SWITCH_DOMAIN] for event in events) == sorted(
|
||||
profiles[name].entity_id for name in event_profiles
|
||||
]
|
||||
)
|
||||
assert all(event.context == context for event in events)
|
||||
assert all(
|
||||
event.data[CONF_MANUAL_CONTROL] == LightControlAttributes.BRIGHTNESS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue