mirror of
https://github.com/home-assistant/frontend.git
synced 2026-08-16 10:02:41 +01:00
- ha-code-editor: adapt the YAML schema wiring to the context-based API (states/registries/i18n) instead of the removed `hass` property. - haYamlCompletionSource now takes a context getter instead of a captured snapshot, so a schema or registry that changes after the editor was created is picked up. Previously the completion source kept the schema and registry it was built with for the editor's lifetime. - Memoize the trigger/condition/action YAML schema on the type discriminator rather than the whole config object, which changes identity on every keystroke and made both lint compartments reconfigure per character. - Memoize the registry-derived completion lists; they were rebuilt for every completion request. - Localize the editor chrome: "Required" badge, example/default labels, lint diagnostics, and Jinja value hints. - buildTargetSchema: forward a target's entity/device filters as selector `filter`, instead of nesting the whole target definition under `entity`. - Replace the `__allowUnknownFields` string marker with a symbol, drop `any` casts in the hover source and selector helpers, fix stale comments. - Add unit tests for the schema converters and the lint source. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>