diff --git a/custom_components/pioneer_async/config_flow.py b/custom_components/pioneer_async/config_flow.py index 6aa63bc..f2caa90 100755 --- a/custom_components/pioneer_async/config_flow.py +++ b/custom_components/pioneer_async/config_flow.py @@ -132,6 +132,8 @@ async def async_step_init(self, user_input=None): ## Validate sources is a dict of names to numeric IDs if CONF_SOURCES in options: sources = json.loads(options[CONF_SOURCES]) + if type(sources) is not dict: + raise Exception for (source_name, source_id) in sources.items(): if not ( type(source_name) is str