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:
Franck NijhofandMartin Hjelmare authored and GitHub committed 2020-04-05 03:50:30 +02:00
1 parent 61b4d1e8de
commit 528c7f4871
7 files changed
+17 -25

No files matched your search

@@ -35,11 +35,9 @@ async def test_flow_works(hass, simple_mock_home):
assert result["errors"] == {"base": "press_the_button"}
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"]
)
assert flow["context"]["unique_id"] == "ABC123"