2019-02-14 04:35:12 +00:00
|
|
|
"""Support for showing device locations."""
|
2022-01-14 09:01:12 +00:00
|
|
|
from homeassistant.components import frontend
|
2022-01-02 15:28:14 +00:00
|
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from homeassistant.helpers.typing import ConfigType
|
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "map"
|
2018-01-15 22:24:12 +00:00
|
|
|
|
|
|
|
|
2022-01-02 15:28:14 +00:00
|
|
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
2018-01-15 22:24:12 +00:00
|
|
|
"""Register the built-in map panel."""
|
2022-01-14 09:01:12 +00:00
|
|
|
frontend.async_register_built_in_panel(hass, "map", "map", "hass:tooltip-account")
|
2018-01-15 22:24:12 +00:00
|
|
|
return True
|