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,22 @@
"""The Recovery Mode integration."""
from homeassistant.components import persistent_notification
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.typing import ConfigType
DOMAIN = "recovery_mode"
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the Recovery Mode component."""
persistent_notification.async_create(
hass,
(
"Home Assistant is running in recovery mode. Check [the error"
" log](/config/logs) to see what went wrong."
),
"Recovery Mode",
)
return True

View file

@ -0,0 +1,10 @@
{
"domain": "recovery_mode",
"name": "Recovery Mode",
"codeowners": ["@home-assistant/core"],
"config_flow": false,
"dependencies": ["frontend", "persistent_notification", "cloud"],
"documentation": "https://www.home-assistant.io/integrations/recovery_mode",
"integration_type": "system",
"quality_scale": "internal"
}