Fix lingering timer in cloud (#90822)
* Fix lingering timer in cloud * Rename variable * Improve * Improve again * Adjust * Adjust * Add property to HassJob instead * Adjust * Rename * Adjust * Adjust * Make it read-only * Add specific test
This commit is contained in:
@@ -551,7 +551,6 @@ async def test_setup_hass_takes_longer_than_log_slow_startup(
|
||||
assert "Waiting on integrations to complete setup" in caplog.text
|
||||
|
||||
|
||||
@patch("homeassistant.components.cloud.STARTUP_REPAIR_DELAY", 0)
|
||||
async def test_setup_hass_invalid_yaml(
|
||||
mock_enable_logging: Mock,
|
||||
mock_is_virtual_env: Mock,
|
||||
@@ -607,7 +606,6 @@ async def test_setup_hass_config_dir_nonexistent(
|
||||
)
|
||||
|
||||
|
||||
@patch("homeassistant.components.cloud.STARTUP_REPAIR_DELAY", 0)
|
||||
async def test_setup_hass_safe_mode(
|
||||
mock_enable_logging: Mock,
|
||||
mock_is_virtual_env: Mock,
|
||||
@@ -642,7 +640,6 @@ async def test_setup_hass_safe_mode(
|
||||
|
||||
|
||||
@pytest.mark.parametrize("hass_config", [{"homeassistant": {"non-existing": 1}}])
|
||||
@patch("homeassistant.components.cloud.STARTUP_REPAIR_DELAY", 0)
|
||||
async def test_setup_hass_invalid_core_config(
|
||||
mock_hass_config: None,
|
||||
mock_enable_logging: Mock,
|
||||
@@ -681,7 +678,6 @@ async def test_setup_hass_invalid_core_config(
|
||||
}
|
||||
],
|
||||
)
|
||||
@patch("homeassistant.components.cloud.STARTUP_REPAIR_DELAY", 0)
|
||||
async def test_setup_safe_mode_if_no_frontend(
|
||||
mock_hass_config: None,
|
||||
mock_enable_logging: Mock,
|
||||
|
||||
Reference in New Issue
Block a user