mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Foundation for users (#13968)
* Add initial user foundation to Home Assistant * Address comments * Address comments * Allow non-ascii passwords * One more utf-8 hmac compare digest * Add new line
This commit is contained in:
committed by
Pascal Vizeli
parent
b994c10d7f
commit
cdd45e7878
@@ -260,7 +260,7 @@ class ConfigEntries:
|
||||
"""Initialize the entry manager."""
|
||||
self.hass = hass
|
||||
self.flow = data_entry_flow.FlowManager(
|
||||
hass, self._async_create_flow, self._async_save_entry)
|
||||
hass, self._async_create_flow, self._async_finish_flow)
|
||||
self._hass_config = hass_config
|
||||
self._entries = None
|
||||
self._sched_save = None
|
||||
@@ -345,8 +345,8 @@ class ConfigEntries:
|
||||
return await entry.async_unload(
|
||||
self.hass, component=getattr(self.hass.components, component))
|
||||
|
||||
async def _async_save_entry(self, result):
|
||||
"""Add an entry."""
|
||||
async def _async_finish_flow(self, result):
|
||||
"""Finish a config flow and add an entry."""
|
||||
entry = ConfigEntry(
|
||||
version=result['version'],
|
||||
domain=result['handler'],
|
||||
|
||||
Reference in New Issue
Block a user