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:
epenet 2024-04-05 10:40:14 +02:00 committed by GitHub
parent 04e5086e01
commit 24f83c5890
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 165 additions and 147 deletions

View file

@ -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"],