Skip to content

Commit 59f96e3

Browse files
committed
Further bug fixing
1 parent 2ce3785 commit 59f96e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

custom_components/avanza_stock/config_flow.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ def find_includes(yaml_path, checked=None):
155155
# Store found configurations for the confirmation step
156156
self._found_configs = []
157157
# ...existing code for processing entries...
158+
except Exception as ex:
159+
_LOGGER.exception("Error migrating YAML configuration: %s", ex)
160+
errors = {}
161+
errors["base"] = "migration_error"
162+
return self.async_show_form(
163+
step_id="migrate_yaml",
164+
errors=errors,
165+
)
158166

159167
if user_input is not None:
160168
if CONF_ID in user_input: # User selected an instrument

0 commit comments

Comments
 (0)