Extend safe mode (#31927)
* Extend safe mode * Add safe mode boolean to config JSON output and default Lovelace * Add safe mode to frontend * Update accent color
This commit is contained in:
parent
245482d802
commit
beee1298c5
12 changed files with 131 additions and 17 deletions
|
@ -236,3 +236,9 @@ async def test_get_config_flows(hass):
|
|||
flows = await loader.async_get_config_flows(hass)
|
||||
assert "test_2" in flows
|
||||
assert "test_1" not in flows
|
||||
|
||||
|
||||
async def test_get_custom_components_safe_mode(hass):
|
||||
"""Test that we get empty custom components in safe mode."""
|
||||
hass.config.safe_mode = True
|
||||
assert await loader.async_get_custom_components(hass) == {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue