Home Assistant Unofficial Reference 2024.12.1
__init__.py
Go to the documentation of this file.
1 """The Recovery Mode integration."""
2 
3 from homeassistant.components import persistent_notification
4 from homeassistant.core import HomeAssistant
5 from homeassistant.helpers import config_validation as cv
6 from homeassistant.helpers.typing import ConfigType
7 
8 DOMAIN = "recovery_mode"
9 
10 CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
11 
12 
13 async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
14  """Set up the Recovery Mode component."""
15  persistent_notification.async_create(
16  hass,
17  (
18  "Home Assistant is running in recovery mode. Check [the error"
19  " log](/config/logs) to see what went wrong."
20  ),
21  "Recovery Mode",
22  )
23  return True
bool async_setup(HomeAssistant hass, ConfigType config)
Definition: __init__.py:13