Skip to content

Commit 3be8c29

Browse files
committed
Fix formatting
1 parent 89672b1 commit 3be8c29

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

tests/test_config_flow.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,17 @@ async def test_form_no_cookie(hass: HomeAssistant) -> None:
131131
@pytest.mark.asyncio
132132
async def test_options_flow(hass: HomeAssistant) -> None:
133133
"""Test the options flow."""
134-
entry = MockConfigEntry(domain=DOMAIN, data={}, options={"binary_sensor": True, "sensor": True, "weather": True, "image": True, "scan_interval": 120})
134+
entry = MockConfigEntry(
135+
domain=DOMAIN,
136+
data={},
137+
options={
138+
"binary_sensor": True,
139+
"sensor": True,
140+
"weather": True,
141+
"image": True,
142+
"scan_interval": 120,
143+
},
144+
)
135145
entry.add_to_hass(hass)
136146

137147
await hass.config_entries.async_setup(entry.entry_id)
@@ -147,7 +157,13 @@ async def test_options_flow(hass: HomeAssistant) -> None:
147157
)
148158

149159
assert result["type"] == "create_entry"
150-
assert entry.options == {"binary_sensor": False, "sensor": True, "weather": True, "image": True, "scan_interval": 120}
160+
assert entry.options == {
161+
"binary_sensor": False,
162+
"sensor": True,
163+
"weather": True,
164+
"image": True,
165+
"scan_interval": 120,
166+
}
151167

152168

153169
@pytest.mark.asyncio
@@ -160,8 +176,12 @@ async def test_reconfigure_flow(hass: HomeAssistant) -> None:
160176
await hass.async_block_till_done()
161177

162178
result = await hass.config_entries.flow.async_init(
163-
DOMAIN, context={"source": config_entries.SOURCE_RECONFIGURE, "entry_id": entry.entry_id}
179+
DOMAIN,
180+
context={
181+
"source": config_entries.SOURCE_RECONFIGURE,
182+
"entry_id": entry.entry_id,
183+
},
164184
)
165185

166186
assert result["type"] == "form"
167-
assert result["step_id"] == "user"
187+
assert result["step_id"] == "user"

0 commit comments

Comments
 (0)