Ensure frontend is available if integrations fail to start - Part 1 of 2 (#36093)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
1 parent
9c45115468
commit
fbe7b4ddfa
13 files changed
+173
-63
No files matched your search
@@ -60,6 +60,9 @@ async def test_hassio_discovery_startup(hass, aioclient_mock, hassio_client):
|
||||
|
||||
async def test_hassio_discovery_startup_done(hass, aioclient_mock, hassio_client):
|
||||
"""Test startup and discovery with hass discovery."""
|
||||
aioclient_mock.post(
|
||||
"http://127.0.0.1/supervisor/options", json={"result": "ok", "data": {}},
|
||||
)
|
||||
aioclient_mock.get(
|
||||
"http://127.0.0.1/discovery",
|
||||
json={
|
||||
@@ -101,7 +104,7 @@ async def test_hassio_discovery_startup_done(hass, aioclient_mock, hassio_client
|
||||
await async_setup_component(hass, "hassio", {})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert aioclient_mock.call_count == 2
|
||||
assert aioclient_mock.call_count == 3
|
||||
assert mock_mqtt.called
|
||||
mock_mqtt.assert_called_with(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user