* html5: Enable config flow * Add tests * attempt check create_issue * replace len with call_count * fix config flow tests * test user config * more tests * remove whitespace * Update homeassistant/components/html5/issues.py Co-authored-by: Steven B. <[email protected]> * Update homeassistant/components/html5/issues.py Co-authored-by: Steven B. <[email protected]> * fix config * Adjust issues log * lint * lint * rename create issue * fix typing * update codeowners * fix test * fix tests * Update issues.py * Update tests/components/html5/test_config_flow.py Co-authored-by: J. Nick Koston <[email protected]> * Update tests/components/html5/test_config_flow.py Co-authored-by: J. Nick Koston <[email protected]> * Update tests/components/html5/test_config_flow.py Co-authored-by: J. Nick Koston <[email protected]> * update from review * remove ternary * fix * fix missing service * fix tests * updates * adress review comments * fix indent * fix * fix format * cleanup from review * Restore config schema and use HA issue * Restore config schema and use HA issue --------- Co-authored-by: alexyao2015 <[email protected]> Co-authored-by: Steven B. <[email protected]> Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: Joostlek <[email protected]>
17 lines
485 B
Python
17 lines
485 B
Python
"""The html5 component."""
|
|
|
|
from homeassistant.config_entries import ConfigEntry
|
|
from homeassistant.const import Platform
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers import discovery
|
|
|
|
from .const import DOMAIN
|
|
|
|
|
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|
"""Set up HTML5 from a config entry."""
|
|
await discovery.async_load_platform(
|
|
hass, Platform.NOTIFY, DOMAIN, dict(entry.data), {}
|
|
)
|
|
return True
|