Eventually the issue reoccurred and I went back to 5.4. Had it working today on 2023.8.2 until the first reboot.
The logs are pointing to something…
I hope this points to a solution. The component can’t be deleted either, so I am rather stuck.
The log messages for the error are below:
Logger: homeassistant.loader
Source: components/insteon/init.py:5
First occurred: 7:43:38 PM (1 occurrences)
Last logged: 7:43:38 PM
Unexpected exception importing component homeassistant.components.insteon
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/loader.py”, line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/insteon/init.py”, line 5, in
from pyinsteon import async_close, async_connect, devices
File “/usr/local/lib/python3.11/site-packages/pyinsteon/init.py”, line 18, in
from .protocol import async_modem_connect
File “/usr/local/lib/python3.11/site-packages/pyinsteon/protocol/init.py”, line 13, in
from .serial_transport import async_connect_serial, async_connect_socket
File “/usr/local/lib/python3.11/site-packages/pyinsteon/protocol/serial_transport.py”, line 6, in
from serial_asyncio import SerialTransport
File “/usr/local/lib/python3.11/site-packages/serial_asyncio/init.py”, line 408, in
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module ‘asyncio’ has no attribute ‘coroutine’
Logger: homeassistant.setup
Source: loader.py:821
First occurred: 7:43:38 PM (1 occurrences)
Last logged: 7:43:38 PM
Setup failed for insteon: Unable to import component: Exception importing homeassistant.components.insteon
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/loader.py”, line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/insteon/init.py”, line 5, in
from pyinsteon import async_close, async_connect, devices
File “/usr/local/lib/python3.11/site-packages/pyinsteon/init.py”, line 18, in
from .protocol import async_modem_connect
File “/usr/local/lib/python3.11/site-packages/pyinsteon/protocol/init.py”, line 13, in
from .serial_transport import async_connect_serial, async_connect_socket
File “/usr/local/lib/python3.11/site-packages/pyinsteon/protocol/serial_transport.py”, line 6, in
from serial_asyncio import SerialTransport
File “/usr/local/lib/python3.11/site-packages/serial_asyncio/init.py”, line 408, in
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module ‘asyncio’ has no attribute ‘coroutine’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 215, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/loader.py”, line 821, in get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing homeassistant.components.insteon
Thanks
Mark