mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 00:27:49 +01:00
77ee96644212b0cdf9aedc33cf12ff5255ba1a18
* Re-create form editor when schema changes in hui-form-element-editor When a parent component passes a new schema to hui-form-element-editor (e.g. with updated disabled flags after an entity change), the internal hui-form-editor was not rebuilt because loadConfigElement() short-circuits once the config element exists. This meant dynamic schema changes were silently ignored. Override updated() to detect schema changes after initial load, tear down the stale config element via unloadConfigElement(), and re-set the value so the normal load path recreates the form with the current schema. Fixes #29776 * Fix prettier formatting in hui-map-card.ts Pre-existing formatting issue on dev branch. * Propagate schema changes to existing form editor element When the schema property on hui-form-element-editor changes (e.g. because the selected entity changed and disabled flags need updating), directly update the schema on the already-created hui-form-editor config element. Previously, unloadConfigElement() was tried but caused a visible flash (editor going blank then reappearing), and re-setting value with a spread object was tried but deepEqual considers it unchanged, short-circuiting the reload. The fix is minimal: make _configElement protected in HuiElementEditor so the subclass can reach it, then in the updated() hook push the new schema directly onto the existing element — no teardown, no re-creation.
…
Home Assistant Frontend
This is the repository for the official Home Assistant frontend.
Development
- Initial setup:
script/setup - Development: Instructions
- Production build:
script/build_frontend - Gallery:
cd gallery && script/develop_gallery
Frontend development
Classic environment
A complete guide can be found at the following link. It describes a short guide for the build of project.
License
Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.
We use BrowserStack to test Home Assistant on a large variety of devices.
Description
Languages
TypeScript
98.8%
JavaScript
1.1%

