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

@ -28,7 +28,6 @@ async def test_full_flow(hass: HomeAssistant) -> None:
assert result.get("type") == FlowResultType.FORM
assert result.get("errors") == {}
assert result.get("step_id") == SOURCE_USER
assert "flow_id" in result
mock_youless = _get_mock_youless_api(
initialize={"homes": [{"id": 1, "name": "myhome"}]}
@ -56,7 +55,6 @@ async def test_not_found(hass: HomeAssistant) -> None:
assert result.get("type") == FlowResultType.FORM
assert result.get("errors") == {}
assert result.get("step_id") == SOURCE_USER
assert "flow_id" in result
mock_youless = _get_mock_youless_api(initialize=URLError(""))
with patch(