Use is over == comparison for FlowResultType in flow tests (#159158)

This commit is contained in:
epenet
2025-12-16 09:48:45 +01:00
committed by GitHub
parent 278cb4d3ae
commit dbfdaf6a2e
52 changed files with 215 additions and 215 deletions
@@ -42,7 +42,7 @@ async def test_options_flow(
await hass.async_block_till_done()
assert result["step_id"] == "init"
assert result["type"] == FlowResultType.FORM
assert result["type"] is FlowResultType.FORM
# test: valid input
@@ -54,7 +54,7 @@ async def test_options_flow(
)
await hass.async_block_till_done()
assert result["type"] == FlowResultType.CREATE_ENTRY
assert result["type"] is FlowResultType.CREATE_ENTRY
assert result["data"][ATTR_PARSER] == PARSER_PLAIN_TEXT