Show a notification when a config entry is discovered (#14022)

* Show a notification when a config entry is discovered

* update comment

* Inline functions

* Lint
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2018-04-22 21:00:24 +02:00
1 parent 1fbc650871
commit 5d3471269a
5 files changed
+62 -4

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ class FlowManager:
async def async_init(self, handler, *, source=SOURCE_USER, data=None):
"""Start a configuration flow."""
flow = await self._async_create_flow(handler)
flow = await self._async_create_flow(handler, source=source, data=data)
flow.hass = self.hass
flow.handler = handler
flow.flow_id = uuid.uuid4().hex