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

@ -156,7 +156,7 @@ async def test_new_dashboard_fix_reauth(
"unique_id": mock_config_entry.unique_id,
},
)
assert result["type"] == FlowResultType.FORM
assert result["type"] is FlowResultType.FORM
assert result["step_id"] == "reauth_confirm"
assert len(mock_get_encryption_key.mock_calls) == 0