mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00

* 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. <51370195+sdb9696@users.noreply.github.com> * Update homeassistant/components/html5/issues.py Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com> * 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 <nick@koston.org> * Update tests/components/html5/test_config_flow.py Co-authored-by: J. Nick Koston <nick@koston.org> * Update tests/components/html5/test_config_flow.py Co-authored-by: J. Nick Koston <nick@koston.org> * 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 <alexyao2015@users.noreply.github.com> Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Joostlek <joostlek@outlook.com>
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
|