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
|
@ -94,7 +94,8 @@ async def test_migrate_process_sensor(
|
|||
assert resp.status == HTTPStatus.OK
|
||||
data = await resp.json()
|
||||
|
||||
assert data["type"] == FlowResultType.CREATE_ENTRY
|
||||
# Cannot use identity `is` check here as the value is parsed from JSON
|
||||
assert data["type"] == FlowResultType.CREATE_ENTRY.value
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get("binary_sensor.system_monitor_process_python3")
|
||||
|
@ -192,5 +193,6 @@ async def test_other_fixable_issues(
|
|||
assert resp.status == HTTPStatus.OK
|
||||
data = await resp.json()
|
||||
|
||||
assert data["type"] == FlowResultType.CREATE_ENTRY
|
||||
# Cannot use identity `is` check here as the value is parsed from JSON
|
||||
assert data["type"] == FlowResultType.CREATE_ENTRY.value
|
||||
await hass.async_block_till_done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue