SSH Command version
1.0.1
Home Assistant version
2026.4.3
The integration fails to load with the error: Config flow could not be loaded: {"message":"Invalid handler specified"}.
Looking at the logs, there is a fatal AttributeError during the import of the integration's components. It appears that the dependency asyncssh (v2.22.0) triggers an import of fido2, which contains Windows-specific calls (ctypes.HRESULT) that are incompatible with Linux-based environments running Python 3.14.
2026-04-18 18:31:36.720 ERROR (ImportExecutor_0) [homeassistant.loader] Unexpected exception importing platform custom_components.ssh_command.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1280, in _load_platform
cache[full_name] = self._import_platform(platform_name)
...
File "/config/custom_components/ssh_command/coordinator.py", line 18, in <module>
from asyncssh import HostKeyNotVerifiable, KeyImportError, PermissionDenied, connect, read_known_hosts
File "/usr/local/lib/python3.14/site-packages/asyncssh/__init__.py", line 31, in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
File "/usr/local/lib/python3.14/site-packages/asyncssh/agent.py", line 33, in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
File "/usr/local/lib/python3.14/site-packages/fido2/client/win_api.py", line 848, in <module>
HRESULT = ctypes.HRESULT
AttributeError: module 'ctypes' has no attribute 'HRESULT'
I attempted a temporary workaround by downgrading asyncssh to 2.14.0 in manifest.json. This allowed the integration to load, but resulted in a new error when executing commands:
'SSHCompletedProcess' object has no attribute 'stdout'.
Expected behavior
The integration should load without errors on Python 3.14
SSH Command version
1.0.1
Home Assistant version
2026.4.3
The integration fails to load with the error: Config flow could not be loaded: {"message":"Invalid handler specified"}.
Looking at the logs, there is a fatal AttributeError during the import of the integration's components. It appears that the dependency asyncssh (v2.22.0) triggers an import of fido2, which contains Windows-specific calls (ctypes.HRESULT) that are incompatible with Linux-based environments running Python 3.14.
I attempted a temporary workaround by downgrading asyncssh to 2.14.0 in manifest.json. This allowed the integration to load, but resulted in a new error when executing commands:
'SSHCompletedProcess' object has no attribute 'stdout'.
Expected behavior
The integration should load without errors on Python 3.14