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

@ -22,7 +22,7 @@ async def flow_id(hass: HomeAssistant) -> str:
DOMAIN, context={"source": config_entries.SOURCE_USER}
)
assert result["type"] == FlowResultType.FORM
assert result["type"] is FlowResultType.FORM
assert result["errors"] == {}
return result["flow_id"]