Thank you @wills106 for the update and guidance. Makes sense.
I removed modbus and anything solax from configuration.yaml.
I removed the solax_modbus directory and downloaded the new one to replace it. I couldn’t remove the integration from the integrations page as it never loaded. Restarted HA.
Configuration > Integrations > +ADD INTEGRATION > SolaX Inverter Modbus
Same result: Error “Config flow could not be loaded”
I never get the configuration dialogue box.
Log below:
This error originated from a custom integration.
Logger: aiohttp.server
Source: custom_components/solax_modbus/const.py:156
Integration: SolaX Inverter Modbus (documentation, issues)
First occurred: 9:52:05 PM (1 occurrences)
Last logged: 9:52:05 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/dist-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/dist-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/http/forwarded.py", line 92, in forwarded_middleware
return await handler(request)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
return await handler(request)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/http/ban.py", line 78, in ban_middleware
return await handler(request)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/http/auth.py", line 144, in auth_middleware
return await handler(request)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/config/config_entries.py", line 130, in post
return await super().post(request)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/helpers/data_entry_flow.py", line 72, in post
result = await self._flow_mgr.async_init(
File "/usr/local/lib/python3.8/dist-packages/homeassistant/data_entry_flow.py", line 151, in async_init
flow, result = await task
File "/usr/local/lib/python3.8/dist-packages/homeassistant/data_entry_flow.py", line 169, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/config_entries.py", line 709, in async_create_flow
integration.get_platform("config_flow")
File "/usr/local/lib/python3.8/dist-packages/homeassistant/loader.py", line 532, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/local/lib/python3.8/dist-packages/homeassistant/loader.py", line 537, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/.homeassistant/custom_components/solax_modbus/__init__.py", line 19, in <module>
from .const import (
File "/home/.homeassistant/custom_components/solax_modbus/const.py", line 156, in <module>
SENSOR_TYPES: dict[str, list[SolaXModbusSensorEntityDescription]] = {
TypeError: 'type' object is not subscriptable