From fcba9974e58f724677deebbec7ce05973c0a3f05 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 25 Nov 2022 14:40:20 +0100 Subject: [PATCH] Rename options to suggested_values (#82700) --- homeassistant/helpers/schema_config_entry_flow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/helpers/schema_config_entry_flow.py b/homeassistant/helpers/schema_config_entry_flow.py index 457f541abfc..f992b187e9d 100644 --- a/homeassistant/helpers/schema_config_entry_flow.py +++ b/homeassistant/helpers/schema_config_entry_flow.py @@ -162,9 +162,9 @@ class SchemaCommonFlowHandler: user_input: dict[str, Any] | None = None, ) -> FlowResult: """Show form for next step.""" - options = dict(self._options) + suggested_values = dict(self._options) if user_input: - options.update(user_input) + suggested_values.update(user_input) if isinstance(self._flow[next_step_id], SchemaFlowMenuStep): menu_step = cast(SchemaFlowMenuStep, self._flow[next_step_id]) @@ -193,10 +193,10 @@ class SchemaCommonFlowHandler: continue new_key = key - if key in options and isinstance(key, vol.Marker): + if key in suggested_values and isinstance(key, vol.Marker): # Copy the marker to not modify the flow schema new_key = copy.copy(key) - new_key.description = {"suggested_value": options[key]} + new_key.description = {"suggested_value": suggested_values[key]} schema[new_key] = val data_schema = vol.Schema(schema)