mirror of
https://github.com/home-assistant/core.git
synced 2025-11-24 10:16:58 +00:00
Rename the safe_mode integration to recovery_mode (#102581)
* Rename safe mode integration to recovery mode * Update code
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user