From d2fc3a22e2415e0bb7e0147dfbf04c765ee7679a Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 10 Dec 2022 11:43:22 +0100 Subject: [PATCH] Drop title from repairs flows (#83627) --- homeassistant/components/cloud/repairs.py | 2 +- homeassistant/components/demo/repairs.py | 2 +- homeassistant/components/unifiprotect/repairs.py | 4 ++-- tests/components/cloud/test_repairs.py | 1 - tests/components/demo/test_init.py | 1 - 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/cloud/repairs.py b/homeassistant/components/cloud/repairs.py index bf2df23aca9..440254399db 100644 --- a/homeassistant/components/cloud/repairs.py +++ b/homeassistant/components/cloud/repairs.py @@ -106,7 +106,7 @@ class LegacySubscriptionRepairFlow(RepairsFlow): async def async_step_complete(self, _: None = None) -> FlowResult: """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: """Handle the final step of a fix flow.""" diff --git a/homeassistant/components/demo/repairs.py b/homeassistant/components/demo/repairs.py index 1ea00374457..41db200dd72 100644 --- a/homeassistant/components/demo/repairs.py +++ b/homeassistant/components/demo/repairs.py @@ -24,7 +24,7 @@ class DemoFixFlow(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={}) return self.async_show_form(step_id="confirm", data_schema=vol.Schema({})) diff --git a/homeassistant/components/unifiprotect/repairs.py b/homeassistant/components/unifiprotect/repairs.py index 98846113e5e..dd1aaa283dc 100644 --- a/homeassistant/components/unifiprotect/repairs.py +++ b/homeassistant/components/unifiprotect/repairs.py @@ -62,7 +62,7 @@ class EAConfirm(RepairsFlow): if await nvr.get_is_prerelease(): return await self.async_step_confirm() 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( self, user_input: dict[str, str] | None = None @@ -72,7 +72,7 @@ class EAConfirm(RepairsFlow): options = dict(self._entry.options) options[CONF_ALLOW_EA] = True 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() return self.async_show_form( diff --git a/tests/components/cloud/test_repairs.py b/tests/components/cloud/test_repairs.py index a7f8b2332d7..7df1c1cdc22 100644 --- a/tests/components/cloud/test_repairs.py +++ b/tests/components/cloud/test_repairs.py @@ -152,7 +152,6 @@ async def test_legacy_subscription_repair_flow( "type": "create_entry", "flow_id": flow_id, "handler": DOMAIN, - "title": "", "description": None, "description_placeholders": None, } diff --git a/tests/components/demo/test_init.py b/tests/components/demo/test_init.py index e5156f35317..45fa602b143 100644 --- a/tests/components/demo/test_init.py +++ b/tests/components/demo/test_init.py @@ -243,7 +243,6 @@ async def test_issues_created(mock_history, hass, hass_client, hass_ws_client): "description_placeholders": None, "flow_id": flow_id, "handler": "demo", - "title": "", "type": "create_entry", "version": 1, }