Rename safe mode to recovery mode (#102580)
This commit is contained in:
parent
7a009ed6cd
commit
c481fdb7d0
17 changed files with 67 additions and 65 deletions
|
@ -112,11 +112,11 @@ async def test_component_requirement_not_found(hass: HomeAssistant) -> None:
|
|||
assert not res.errors
|
||||
|
||||
|
||||
async def test_component_not_found_safe_mode(hass: HomeAssistant) -> None:
|
||||
"""Test no errors if component not found in safe mode."""
|
||||
async def test_component_not_found_recovery_mode(hass: HomeAssistant) -> None:
|
||||
"""Test no errors if component not found in recovery mode."""
|
||||
# Make sure they don't exist
|
||||
files = {YAML_CONFIG_FILE: BASE_CONFIG + "beer:"}
|
||||
hass.config.safe_mode = True
|
||||
hass.config.recovery_mode = True
|
||||
with patch("os.path.isfile", return_value=True), patch_yaml_files(files):
|
||||
res = await async_check_ha_config_file(hass)
|
||||
log_ha_config(res)
|
||||
|
@ -145,11 +145,11 @@ async def test_component_platform_not_found_2(hass: HomeAssistant) -> None:
|
|||
assert not res.errors
|
||||
|
||||
|
||||
async def test_platform_not_found_safe_mode(hass: HomeAssistant) -> None:
|
||||
"""Test no errors if platform not found in safe_mode."""
|
||||
async def test_platform_not_found_recovery_mode(hass: HomeAssistant) -> None:
|
||||
"""Test no errors if platform not found in recovery_mode."""
|
||||
# Make sure they don't exist
|
||||
files = {YAML_CONFIG_FILE: BASE_CONFIG + "light:\n platform: beer"}
|
||||
hass.config.safe_mode = True
|
||||
hass.config.recovery_mode = True
|
||||
with patch("os.path.isfile", return_value=True), patch_yaml_files(files):
|
||||
res = await async_check_ha_config_file(hass)
|
||||
log_ha_config(res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue