Add context to login flow (#15914)
* Add context to login flow * source -> context * Fix unit test * Update comment
This commit is contained in:
parent
45f12dd3c7
commit
50daef9a52
15 changed files with 36 additions and 38 deletions
|
@ -96,7 +96,7 @@ class ConfigManagerFlowIndexView(FlowManagerIndexView):
|
|||
|
||||
return self.json([
|
||||
flw for flw in hass.config_entries.flow.async_progress()
|
||||
if flw['source'] != config_entries.SOURCE_USER])
|
||||
if flw['context']['source'] != config_entries.SOURCE_USER])
|
||||
|
||||
|
||||
class ConfigManagerFlowResourceView(FlowManagerResourceView):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue