Skip to content

chore(gateway): drop HOMEASSISTANT from /update allowlist#40736

Merged
teknium1 merged 1 commit into
mainfrom
hermes/ha-update-allowlist-followup
Jun 7, 2026
Merged

chore(gateway): drop HOMEASSISTANT from /update allowlist#40736
teknium1 merged 1 commit into
mainfrom
hermes/ha-update-allowlist-followup

Conversation

@teknium1

@teknium1 teknium1 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Drops Platform.HOMEASSISTANT from the _UPDATE_ALLOWED_PLATFORMS frozenset in gateway/run.py. Home Assistant is a bundled plugin now (#40709) and declares allow_update_command=True on its PlatformEntry; the registry fallback in _handle_update_command already covers it, so the frozenset entry is a redundant double-allow — the same cleanup #40711 did for Discord and Mattermost.

Changes

  • gateway/run.py: remove Platform.HOMEASSISTANT from _UPDATE_ALLOWED_PLATFORMS
  • tests/gateway/test_update_command.py: add test_allows_homeassistant_via_registry_fallback, mirroring the existing discord/mattermost cases — asserts HA is not in the frozenset, the registry entry has allow_update_command=True, and /update is not rejected by the gate

Validation

Result
Registry flag homeassistant entry has allow_update_command=True
Frozenset Platform.HOMEASSISTANT removed; Discord/Mattermost already gone (#40711)
Tests 35 passed in test_update_command.py (+1 new fallback case)

Follow-up to #40709 (HA → bundled plugin) and #40711 (Discord/Mattermost allowlist cleanup), which explicitly deferred HA until the migration landed.

Infographic

homeassistant-registry-gate

Home Assistant is a bundled plugin now (#40709) and declares
allow_update_command=True on its PlatformEntry. The registry fallback
in _handle_update_command already covers it, so the frozenset entry is
a redundant double-allow — same cleanup #40711 did for Discord and
Mattermost. Adds a registry-fallback test mirroring the existing
discord/mattermost cases.
@daimon-nous daimon-nous Bot added type/refactor Code restructuring, no behavior change P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins labels Jun 6, 2026
@teknium1 teknium1 merged commit f4a73ab into main Jun 7, 2026
23 checks passed
@teknium1 teknium1 deleted the hermes/ha-update-allowlist-followup branch June 7, 2026 01:25
changman pushed a commit to changman/hermes-agent that referenced this pull request Jun 10, 2026
…ch#40736)

Home Assistant is a bundled plugin now (NousResearch#40709) and declares
allow_update_command=True on its PlatformEntry. The registry fallback
in _handle_update_command already covers it, so the frozenset entry is
a redundant double-allow — same cleanup NousResearch#40711 did for Discord and
Mattermost. Adds a registry-fallback test mirroring the existing
discord/mattermost cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant