Home Assistant Unofficial Reference 2024.12.1
__init__.py
Go to the documentation of this file.
1 """Support for my.home-assistant.io redirect service."""
2 
3 from homeassistant.components import frontend
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 = "my"
9 URL_PATH = "_my_redirect"
10 
11 CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
12 
13 
14 async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
15  """Register hidden _my_redirect panel."""
16  frontend.async_register_built_in_panel(hass, DOMAIN, frontend_url_path=URL_PATH)
17  return True
bool async_setup(HomeAssistant hass, ConfigType config)
Definition: __init__.py:14