hass-core/homeassistant/components/my/__init__.py
Bram Kragten 6f446cf627
Add my component ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-08 14:44:46 +01:00

12 lines
308 B
Python

"""Support for my.home-assistant.io redirect service."""
DOMAIN = "my"
URL_PATH = "_my_redirect"
async def async_setup(hass, config):
"""Register hidden _my_redirect panel."""
hass.components.frontend.async_register_built_in_panel(
DOMAIN, frontend_url_path=URL_PATH
)
return True