Drop title from repairs flows (#83627)
This commit is contained in:
parent
535aba10ee
commit
d2fc3a22e2
5 changed files with 4 additions and 6 deletions
|
@ -106,7 +106,7 @@ class LegacySubscriptionRepairFlow(RepairsFlow):
|
||||||
|
|
||||||
async def async_step_complete(self, _: None = None) -> FlowResult:
|
async def async_step_complete(self, _: None = None) -> FlowResult:
|
||||||
"""Handle the final step of a fix flow."""
|
"""Handle the final step of a fix flow."""
|
||||||
return self.async_create_entry(title="", data={})
|
return self.async_create_entry(data={})
|
||||||
|
|
||||||
async def async_step_timeout(self, _: None = None) -> FlowResult:
|
async def async_step_timeout(self, _: None = None) -> FlowResult:
|
||||||
"""Handle the final step of a fix flow."""
|
"""Handle the final step of a fix flow."""
|
||||||
|
|
|
@ -24,7 +24,7 @@ class DemoFixFlow(RepairsFlow):
|
||||||
) -> data_entry_flow.FlowResult:
|
) -> data_entry_flow.FlowResult:
|
||||||
"""Handle the confirm step of a fix flow."""
|
"""Handle the confirm step of a fix flow."""
|
||||||
if user_input is not None:
|
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="confirm", data_schema=vol.Schema({}))
|
return self.async_show_form(step_id="confirm", data_schema=vol.Schema({}))
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ class EAConfirm(RepairsFlow):
|
||||||
if await nvr.get_is_prerelease():
|
if await nvr.get_is_prerelease():
|
||||||
return await self.async_step_confirm()
|
return await self.async_step_confirm()
|
||||||
await self.hass.config_entries.async_reload(self._entry.entry_id)
|
await self.hass.config_entries.async_reload(self._entry.entry_id)
|
||||||
return self.async_create_entry(title="", data={})
|
return self.async_create_entry(data={})
|
||||||
|
|
||||||
async def async_step_confirm(
|
async def async_step_confirm(
|
||||||
self, user_input: dict[str, str] | None = None
|
self, user_input: dict[str, str] | None = None
|
||||||
|
@ -72,7 +72,7 @@ class EAConfirm(RepairsFlow):
|
||||||
options = dict(self._entry.options)
|
options = dict(self._entry.options)
|
||||||
options[CONF_ALLOW_EA] = True
|
options[CONF_ALLOW_EA] = True
|
||||||
self.hass.config_entries.async_update_entry(self._entry, options=options)
|
self.hass.config_entries.async_update_entry(self._entry, options=options)
|
||||||
return self.async_create_entry(title="", data={})
|
return self.async_create_entry(data={})
|
||||||
|
|
||||||
placeholders = self._async_get_placeholders()
|
placeholders = self._async_get_placeholders()
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
|
|
|
@ -152,7 +152,6 @@ async def test_legacy_subscription_repair_flow(
|
||||||
"type": "create_entry",
|
"type": "create_entry",
|
||||||
"flow_id": flow_id,
|
"flow_id": flow_id,
|
||||||
"handler": DOMAIN,
|
"handler": DOMAIN,
|
||||||
"title": "",
|
|
||||||
"description": None,
|
"description": None,
|
||||||
"description_placeholders": None,
|
"description_placeholders": None,
|
||||||
}
|
}
|
||||||
|
|
|
@ -243,7 +243,6 @@ async def test_issues_created(mock_history, hass, hass_client, hass_ws_client):
|
||||||
"description_placeholders": None,
|
"description_placeholders": None,
|
||||||
"flow_id": flow_id,
|
"flow_id": flow_id,
|
||||||
"handler": "demo",
|
"handler": "demo",
|
||||||
"title": "",
|
|
||||||
"type": "create_entry",
|
"type": "create_entry",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue