1
mirror of https://github.com/home-assistant/core synced 2024-09-15 17:29:45 +02:00
ha-core/homeassistant/components/my/__init__.py

14 lines
462 B
Python
Raw Normal View History

"""Support for my.home-assistant.io redirect service."""
from homeassistant.components import frontend
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
DOMAIN = "my"
URL_PATH = "_my_redirect"
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Register hidden _my_redirect panel."""
frontend.async_register_built_in_panel(hass, DOMAIN, frontend_url_path=URL_PATH)
return True