Use is in FlowResultType enum comparison in tests (#114917)
* Use is in FlowResultType enum comparison in tests * Adjust auth * Adjust systemmonitor * Once more * Add comment
This commit is contained in:
parent
04e5086e01
commit
24f83c5890
25 changed files with 165 additions and 147 deletions
|
@ -38,7 +38,7 @@ async def test_adding_processor_to_options(
|
|||
mock_added_config_entry.entry_id
|
||||
)
|
||||
|
||||
assert result["type"] == FlowResultType.FORM
|
||||
assert result["type"] is FlowResultType.FORM
|
||||
assert result["step_id"] == "init"
|
||||
|
||||
result = await hass.config_entries.options.async_configure(
|
||||
|
@ -49,7 +49,7 @@ async def test_adding_processor_to_options(
|
|||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert result["type"] == FlowResultType.CREATE_ENTRY
|
||||
assert result["type"] is FlowResultType.CREATE_ENTRY
|
||||
assert result["data"] == {
|
||||
"binary_sensor": {
|
||||
CONF_PROCESS: ["python3", "pip", "systemd"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue