Home Assistant Unofficial Reference 2024.12.1
__init__.py
Go to the documentation of this file.
1 """The html5 component."""
2 
3 from homeassistant.config_entries import ConfigEntry
4 from homeassistant.const import Platform
5 from homeassistant.core import HomeAssistant
6 from homeassistant.helpers import discovery
7 
8 from .const import DOMAIN
9 
10 
11 async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
12  """Set up HTML5 from a config entry."""
13  await discovery.async_load_platform(
14  hass, Platform.NOTIFY, DOMAIN, dict(entry.data), {}
15  )
16  return True
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)
Definition: __init__.py:11