Enable Ruff SIM300 (#86793)

This commit is contained in:
Franck Nijhof 2023-01-30 11:03:23 +01:00 committed by GitHub
parent 9ac8f9aa37
commit c56832bb2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 43 additions and 42 deletions

View file

@ -2180,12 +2180,12 @@ async def test_recursive_automation_starting_script(
# Fail if additional script modes are added to
# make sure we cover all script modes in tests
assert SCRIPT_MODE_CHOICES == [
assert [
SCRIPT_MODE_PARALLEL,
SCRIPT_MODE_QUEUED,
SCRIPT_MODE_RESTART,
SCRIPT_MODE_SINGLE,
]
] == SCRIPT_MODE_CHOICES
stop_scripts_at_shutdown_called = asyncio.Event()
real_stop_scripts_at_shutdown = _async_stop_scripts_at_shutdown