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
22
homeassistant/components/recovery_mode/__init__.py
Normal file
22
homeassistant/components/recovery_mode/__init__.py
Normal 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
|
10
homeassistant/components/recovery_mode/manifest.json
Normal file
10
homeassistant/components/recovery_mode/manifest.json
Normal 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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue