mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
test: keep split-command brightness checks deterministic (#1532)
This commit is contained in:
parent
fdce4c9102
commit
28f0fe8c58
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue