Removal of extraneous parenthesis in tests (#33670)
* Removal of extraneous parenthesis * Process review suggestions * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
61b4d1e8de
commit
528c7f4871
7 changed files with 17 additions and 25 deletions
|
@ -100,11 +100,9 @@ def test_valid_pairing_codes(pairing_code):
|
|||
def get_flow_context(hass, result):
|
||||
"""Get the flow context from the result of async_init or async_configure."""
|
||||
flow = next(
|
||||
(
|
||||
flow
|
||||
for flow in hass.config_entries.flow.async_progress()
|
||||
if flow["flow_id"] == result["flow_id"]
|
||||
)
|
||||
flow
|
||||
for flow in hass.config_entries.flow.async_progress()
|
||||
if flow["flow_id"] == result["flow_id"]
|
||||
)
|
||||
|
||||
return flow["context"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue