Prevent calling stop or restart services during db upgrade (#49098)

This commit is contained in:
J. Nick Koston
2021-04-12 14:18:38 -10:00
committed by GitHub
parent 65126cec3e
commit 53853f035d
8 changed files with 270 additions and 32 deletions

View File

@@ -126,7 +126,7 @@ async def test_call_service_blocking(hass, websocket_client, command):
assert msg["type"] == const.TYPE_RESULT
assert msg["success"]
mock_call.assert_called_once_with(
ANY, "homeassistant", "restart", ANY, blocking=False, context=ANY, target=ANY
ANY, "homeassistant", "restart", ANY, blocking=True, context=ANY, target=ANY
)