Skip to content

fix(gateway): stop HASS_TOKEN from overriding enabled: false#25089

Open
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/25065-hass-token-override
Open

fix(gateway): stop HASS_TOKEN from overriding enabled: false#25089
ms-alan wants to merge 1 commit into
NousResearch:mainfrom
ms-alan:fix/25065-hass-token-override

Conversation

@ms-alan

@ms-alan ms-alan commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

When HASS_TOKEN is set, it previously unconditionally set platforms.homeassistant.enabled = True, overriding an explicit enabled: false in the user's config.yaml.

Now enabled = True is only set when creating a brand-new PlatformConfig (i.e., when HOMEASSISTANT was not already in config). If the user already configured the platform (even with enabled: false), the env var only sets the token/URL but leaves enabled untouched.

Closes #25065

When HASS_TOKEN is set, it previously unconditionally set
platforms.homeassistant.enabled = True, overriding an explicit
enabled: false in the user's config.yaml.

Now enabled = True is only set when creating a brand-new
PlatformConfig (i.e. when HOMEASSISTANT was not already in config).
If the user already configured the platform (even with enabled: false),
the env var only sets the token/URL but leaves enabled untouched.

Closes NousResearch#25065
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery area/config Config system, migrations, profiles labels May 13, 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 type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HASS_TOKEN env unconditionally force-enables Home Assistant gateway platform, overriding config.yaml platforms.homeassistant.enabled: false

2 participants