7ff8aae8fb
De-risking for the #48820 behaviour change: before this branch, credentials in the environment force-enabled twelve platforms regardless of an explicit enabled: false in config.yaml. Now that the explicit disable wins, users who relied on the old override would see the platform go dark with no trace. _enable_from_env (and Slack's inline copy) now emit ONE WARNING per platform per process when the platform is explicitly disabled AND its env credentials are present, naming the platform, the winning key (platforms.<x>.enabled: false), the env var(s) being ignored, and the remedy. A plain disable with no credentials, an enabled platform, and the env-only (no YAML opinion) path stay silent; repeated config reloads do not repeat it. _ENV_ENABLE_CREDENTIALS maps every _enable_from_env platform to its triggering env var(s); a test pins that the map covers every routed branch. Docs: messaging/index.md gains a 'Disabling a platform whose credentials are still in .env' section with the exact warning text. Live repro (real load_gateway_config on a temp HERMES_HOME with platforms.weixin/telegram.enabled: false + WEIXIN_TOKEN/TELEGRAM_BOT_TOKEN in env): before — both stayed disabled with zero log output; after — one WARNING each ('Platform 'weixin' is explicitly disabled by platforms.weixin.enabled: false ... (WEIXIN_TOKEN, WEIXIN_ACCOUNT_ID) will NOT start its adapter ...'), none for the enabled homeassistant, none on the second load.
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Diagram Linting
CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.