Rename the safe_mode integration to recovery_mode (#102581)

* Rename safe mode integration to recovery mode

* Update code
This commit is contained in:
Erik Montnemery 2023-10-24 09:11:14 +02:00 committed by GitHub
parent 6372bc3aaa
commit b953f2998c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 26 additions and 26 deletions

View 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