Remove unnecessary title kwarg in options flows (#85131)

This commit is contained in:
Aaron Bach 2023-01-04 12:17:58 -07:00 committed by GitHub
parent 439b35c310
commit b80997cc43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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",

View File

@ -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",

View File

@ -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",