OK. It seems that checking “save debug file” is not carrying through after submitting and re-opening options. If I change log level to “debug” and check “save debug file” I then get an error in the core logs:
2020-05-15 12:46:37 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/edgeos/__init__.py", line 61, in async_options_updated
await handle_log_level(hass, entry)
File "/config/custom_components/edgeos/helpers/__init__.py", line 66, in handle_log_level
await hass.services.async_call(DOMAIN_LOGGER, SERVICE_SET_LEVEL, log_level_data)
File "/usr/src/homeassistant/homeassistant/core.py", line 1206, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service logger/set_level
2020-05-15 12:46:37 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/edgeos/__init__.py", line 61, in async_options_updated
await handle_log_level(hass, entry)
File "/config/custom_components/edgeos/helpers/__init__.py", line 66, in handle_log_level
await hass.services.async_call(DOMAIN_LOGGER, SERVICE_SET_LEVEL, log_level_data)
File "/usr/src/homeassistant/homeassistant/core.py", line 1206, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service logger/set_level
and on server restart I cannot access integration options and get “Please wait while the integration is being installed”
And the following log:
2020-05-15 12:52:56 INFO (MainThread) [custom_components.edgeos.config_flow] Starting additional settings step: None
2020-05-15 12:52:56 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 125, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 186, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 54, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 63, in post
handler, context={"source": config_entries.SOURCE_USER}
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 124, in async_init
flow, flow.init_step, data, init_done
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/config/custom_components/edgeos/config_flow.py", line 93, in async_step_init
return await self.async_step_edge_os_additional_settings(user_input)
File "/config/custom_components/edgeos/config_flow.py", line 123, in async_step_edge_os_additional_settings
schema = self._config_flow.get_default_options()
File "/config/custom_components/edgeos/managers/config_flow_manager.py", line 167, in get_default_options
all_interfaces = self._get_available_options(system_data, INTERFACES_KEY)
File "/config/custom_components/edgeos/managers/config_flow_manager.py", line 359, in _get_available_options
for item_key in all_items:
TypeError: 'NoneType' object is not iterable