Skip to content

fix(gateway): honor config-backed adapter requirements#14053

Open
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/gateway-config-backed-adapter-preflight-13827
Open

fix(gateway): honor config-backed adapter requirements#14053
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/gateway-config-backed-adapter-preflight-13827

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Fixes #13827

Summary

  • let gateway preflight checks accept Signal, Home Assistant, and Mattermost credentials from PlatformConfig, not only env vars
  • pass the platform config into _create_adapter() requirement checks so config-only setups can instantiate adapters
  • add runner-level regression tests covering config-backed adapter creation without duplicate env vars

Repro

With HASS_TOKEN, MATTERMOST_TOKEN, MATTERMOST_URL, SIGNAL_HTTP_URL, and SIGNAL_ACCOUNT unset, _create_adapter() returned None for valid config-only platform definitions even though the adapters themselves already read from PlatformConfig.

Verification

  • python3 repro: config-only Home Assistant / Mattermost / Signal cases now return adapter instances instead of None
  • pytest -o addopts='' tests/gateway/test_runner_config_backed_adapters.py
  • pytest -o addopts='' tests/gateway/test_homeassistant.py::TestCheckRequirements
  • pytest -o addopts='' tests/gateway/test_mattermost.py::TestMattermostRequirements
  • pytest -o addopts='' tests/gateway/test_signal.py::TestSignalHelpers

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/signal Signal CLI adapter area/config Config system, migrations, profiles labels Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/signal Signal CLI adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gateway config-backed Home Assistant / Mattermost / Signal adapters are blocked by env-only requirement checks

2 participants