Add data entry flow helper (#13935)
* Extract data entry flows HTTP views into helper * Remove use of domain * Lint * Fix tests * Update doc
This commit is contained in:
parent
6e9669c18d
commit
534aa0e4b5
5 changed files with 132 additions and 84 deletions
|
@ -338,7 +338,7 @@ class ConfigEntries:
|
|||
if component not in self.hass.config.components:
|
||||
return True
|
||||
|
||||
await entry.async_unload(
|
||||
return await entry.async_unload(
|
||||
self.hass, component=getattr(self.hass.components, component))
|
||||
|
||||
async def _async_save_entry(self, result):
|
||||
|
@ -362,6 +362,8 @@ class ConfigEntries:
|
|||
await async_setup_component(
|
||||
self.hass, entry.domain, self._hass_config)
|
||||
|
||||
return entry
|
||||
|
||||
async def _async_create_flow(self, handler):
|
||||
"""Create a flow for specified handler.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue