Mark required fields in FlowResult typedict (#84811)

* Mark required fields in FlowResult typedict

* Remove unneeded asserts from tests
This commit is contained in:
Franck Nijhof 2022-12-30 12:01:45 +01:00 committed by GitHub
parent f68a7636c5
commit bcf32f8331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 3 additions and 145 deletions

View file

@ -46,7 +46,6 @@ async def test_user_walkthrough(hass: HomeAssistant, toloclient: Mock):
assert result["type"] == FlowResultType.FORM
assert result["step_id"] == SOURCE_USER
assert "flow_id" in result
toloclient().get_status_info.side_effect = lambda *args, **kwargs: None
@ -58,7 +57,6 @@ async def test_user_walkthrough(hass: HomeAssistant, toloclient: Mock):
assert result2["type"] == FlowResultType.FORM
assert result2["step_id"] == SOURCE_USER
assert result2["errors"] == {"base": "cannot_connect"}
assert "flow_id" in result2
toloclient().get_status_info.side_effect = lambda *args, **kwargs: object()