test: keep split-command brightness checks deterministic (#1532)

This commit is contained in:
Bas Nijholt 2026-09-06 10:58:20 +02:00 committed by GitHub
commit 28f0fe8c58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1815,7 +1815,12 @@ async def test_separate_turn_on_commands(hass, separate_turn_on_commands):
"""Test 'separate_turn_on_commands' argument."""
switch, (light, *_) = await setup_lights_and_switch(
hass,
{CONF_SEPARATE_TURN_ON_COMMANDS: separate_turn_on_commands},
{
CONF_SEPARATE_TURN_ON_COMMANDS: separate_turn_on_commands,
# Keep normal brightness distinct from sleep mode at any time of day.
CONF_MIN_BRIGHTNESS: 50,
CONF_MAX_BRIGHTNESS: 50,
},
)
# We just turn sleep mode on and off which should change the
# brightness and color. We don't test whether the number are exactly