mirror of
https://github.com/home-assistant/core.git
synced 2026-09-27 18:08:37 -04:00
Use is over == comparison for FlowResultType in flow tests (#159158)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user