fix(gateway): respect explicit platform disable for Home Assistant in env overrides - #76871
fix(gateway): respect explicit platform disable for Home Assistant in env overrides#76871bwoliveira wants to merge 3 commits into
Conversation
… env overrides - Check _enabled_explicit on config.platforms[Platform.HOMEASSISTANT] during env overrides when HASS_TOKEN is present in os.environ. - Prevents secondary worker profiles with platforms.homeassistant.enabled: false from being force-enabled in multiplexed gateway mode, avoiding duplicate credential startup errors.
…e under multiplex mode
|
Added regression test in verifying that explicit is honored for Home Assistant even when is present in . |
|
Thanks for isolating the Home Assistant correction into its own focused PR. Current main does unconditionally re-enable Home Assistant when Problems
Suggested changes
Automated hermes-sweeper review. |
…n Home Assistant explicit disable test
|
Updated to explicitly model both ambient environment variables () AND active multiplex mode with scoped secrets ( + ), proving wins in both modes. |
|
Closing this as a duplicate — the same fix is already covered by several open PRs from other contributors:
The auto-decompose half of the original fix (former #76864) is already covered by #57837 (srojk34). Closing mine to reduce queue noise — thanks everyone for the broader coverage. |
Summary
Checks on during env override processing when is present in .
Problem
When running Hermes in multiplexed gateway mode (), secondary worker profiles inherit process-level environment variables (including ). Without checking , env override processing force-enables Home Assistant even when is explicitly configured on secondary profiles, resulting in duplicate credential startup errors:
.
This matches the explicit-disable pattern used for other platforms (Telegram, Slack, API Server).
Validation