From b80997cc433e7891a0127cef866c2dc9e9303106 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Wed, 4 Jan 2023 12:17:58 -0700 Subject: [PATCH] Remove unnecessary `title` kwarg in options flows (#85131) --- homeassistant/components/purpleair/config_flow.py | 4 ++-- homeassistant/components/rainmachine/config_flow.py | 2 +- homeassistant/components/simplisafe/config_flow.py | 2 +- homeassistant/components/watttime/config_flow.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/purpleair/config_flow.py b/homeassistant/components/purpleair/config_flow.py index 0b1be019350..604bcb28c0e 100644 --- a/homeassistant/components/purpleair/config_flow.py +++ b/homeassistant/components/purpleair/config_flow.py @@ -367,7 +367,7 @@ class PurpleAirOptionsFlowHandler(config_entries.OptionsFlow): options = deepcopy({**self.config_entry.options}) options[CONF_SENSOR_INDICES].append(sensor_index) - return self.async_create_entry(title="", data=options) + return self.async_create_entry(data=options) async def async_step_init( self, user_input: dict[str, Any] | None = None @@ -436,4 +436,4 @@ class PurpleAirOptionsFlowHandler(config_entries.OptionsFlow): options = deepcopy({**self.config_entry.options}) options[CONF_SENSOR_INDICES].remove(removed_sensor_index) - return self.async_create_entry(title="", data=options) + return self.async_create_entry(data=options) diff --git a/homeassistant/components/rainmachine/config_flow.py b/homeassistant/components/rainmachine/config_flow.py index b5ae42559bb..1efcf5302fc 100644 --- a/homeassistant/components/rainmachine/config_flow.py +++ b/homeassistant/components/rainmachine/config_flow.py @@ -172,7 +172,7 @@ class RainMachineOptionsFlowHandler(config_entries.OptionsFlow): ) -> FlowResult: """Manage the options.""" if user_input is not None: - return self.async_create_entry(title="", data=user_input) + return self.async_create_entry(data=user_input) return self.async_show_form( step_id="init", diff --git a/homeassistant/components/simplisafe/config_flow.py b/homeassistant/components/simplisafe/config_flow.py index 7ae363c3be3..dcfcd6cd9d3 100644 --- a/homeassistant/components/simplisafe/config_flow.py +++ b/homeassistant/components/simplisafe/config_flow.py @@ -156,7 +156,7 @@ class SimpliSafeOptionsFlowHandler(config_entries.OptionsFlow): ) -> FlowResult: """Manage the options.""" if user_input is not None: - return self.async_create_entry(title="", data=user_input) + return self.async_create_entry(data=user_input) return self.async_show_form( step_id="init", diff --git a/homeassistant/components/watttime/config_flow.py b/homeassistant/components/watttime/config_flow.py index a5d9c6925c8..4f4206da6ec 100644 --- a/homeassistant/components/watttime/config_flow.py +++ b/homeassistant/components/watttime/config_flow.py @@ -244,7 +244,7 @@ class WattTimeOptionsFlowHandler(config_entries.OptionsFlow): ) -> FlowResult: """Manage the options.""" if user_input is not None: - return self.async_create_entry(title="", data=user_input) + return self.async_create_entry(data=user_input) return self.async_show_form( step_id="init",