Check embedded schema against upstream
card_builder_check_schema_syncCompares embedded Card Builder block schema with upstream GitHub main to flag schema drift or breaking changes that cause recipes to fail.
Instructions
Compare the embedded block schema against upstream Card Builder's main branch on GitHub.
Fetches custom_components/card_builder/manifest.json and
frontend/src/common/blocks/loader.ts from
raw.githubusercontent.com/{UPSTREAM_REPO}/main over HTTP and diffs
the upstream version/block list against this module's BLOCK_TYPES
and UPSTREAM_SCHEMA_SYNC constants. Reaches outside the HA instance
and its host.
Use when: a recipe that used to work stops producing the expected
card — the upstream integration may have shipped a breaking schema
change.
Returns: {status: "ok"|"drift"|"fetch_failed", upstream_version, embedded_version, version_matches, missing_block_types, extra_embedded_block_types, advice, embedded_schema, ...}.
Errors: {"status": "fetch_failed", "error": <exception text>, "embedded": ...} when the manifest request itself fails (a timeout or
network error); a failed loader fetch instead sets loader_fetch_error
and still returns status.
Limits: two GitHub requests with a 10-second timeout each.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||