Rename the safe_mode integration to recovery_mode (#102581)
* Rename safe mode integration to recovery mode * Update code
This commit is contained in:
parent
6372bc3aaa
commit
b953f2998c
10 changed files with 26 additions and 26 deletions
13
tests/components/recovery_mode/test_init.py
Normal file
13
tests/components/recovery_mode/test_init.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
"""Tests for the Recovery Mode integration."""
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import async_get_persistent_notifications
|
||||
|
||||
|
||||
async def test_works(hass: HomeAssistant) -> None:
|
||||
"""Test Recovery Mode works."""
|
||||
assert await async_setup_component(hass, "recovery_mode", {})
|
||||
await hass.async_block_till_done()
|
||||
notifications = async_get_persistent_notifications(hass)
|
||||
assert len(notifications) == 1
|
Loading…
Add table
Add a link
Reference in a new issue