Drop title from repairs flows (2) (#85597)

This commit is contained in:
Erik Montnemery 2023-01-10 12:11:30 +01:00 committed by GitHub
parent fa7d7415d7
commit 5fdf78ed30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class ConfirmRepairFlow(RepairsFlow):
) -> data_entry_flow.FlowResult:
"""Handle the confirm step of a fix flow."""
if user_input is not None:
return self.async_create_entry(title="", data={})
return self.async_create_entry(data={})
issue_registry = async_get_issue_registry(self.hass)
description_placeholders = None

View File

@ -99,7 +99,7 @@ class MockFixFlow(RepairsFlow):
) -> data_entry_flow.FlowResult:
"""Handle a custom_step step of a fix flow."""
if user_input is not None:
return self.async_create_entry(title="", data={})
return self.async_create_entry(data={})
return self.async_show_form(step_id="custom_step", data_schema=vol.Schema({}))
@ -334,7 +334,6 @@ async def test_fix_issue(
"description_placeholders": None,
"flow_id": flow_id,
"handler": domain,
"title": "",
"type": "create_entry",
"version": 1,
}