Don't mock non async with AsyncMock (#93749)

This commit is contained in:
Joakim Plate 2023-05-29 20:20:27 +02:00 committed by GitHub
parent 617ff24b9b
commit 067fc079a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,7 @@ def skip_stop_scripts(
return
with patch(
"homeassistant.helpers.script._schedule_stop_scripts_after_shutdown",
AsyncMock(),
Mock(),
):
yield