Rename safe mode to recovery mode (#102580)

This commit is contained in:
Erik Montnemery
2023-10-23 20:33:08 +02:00
committed by GitHub
parent 7a009ed6cd
commit c481fdb7d0
17 changed files with 67 additions and 65 deletions

View File

@@ -690,9 +690,9 @@ async def test_get_mqtt(hass: HomeAssistant) -> None:
assert mqtt["test_2"] == ["test_2/discovery"]
async def test_get_custom_components_safe_mode(hass: HomeAssistant) -> None:
"""Test that we get empty custom components in safe mode."""
hass.config.safe_mode = True
async def test_get_custom_components_recovery_mode(hass: HomeAssistant) -> None:
"""Test that we get empty custom components in recovery mode."""
hass.config.recovery_mode = True
assert await loader.async_get_custom_components(hass) == {}