Mark required fields in FlowResult typedict (#84811)
* Mark required fields in FlowResult typedict * Remove unneeded asserts from tests
This commit is contained in:
parent
f68a7636c5
commit
bcf32f8331
39 changed files with 3 additions and 145 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue