mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 00:27:49 +01:00
89755f274d9bf817be6b1f3765d0ea52836284fe
* Refactor lovelace view lifecycle to avoid unnecessary DOM rebuilds - Remove `force` flag from `hui-root` that was clearing the entire view cache and destroying all cached view DOM on any config change. Views now receive updated lovelace in place and handle config changes internally. - Add `_cleanupViewCache` to remove stale cache entries when views are added, removed, or reordered. - Remove `@ll-rebuild` handler from `hui-root`. Cards and badges already handle `ll-rebuild` via their `hui-card`/`hui-badge` wrappers. Sections now always stop propagation and rebuild locally. - Add `deepEqual` guard in `hui-view._setConfig` and `hui-section._initializeConfig` to skip re-rendering when strategy regeneration produces an identical config. - Simplify `hui-view` refresh flow: remove `_refreshConfig`, `_rendered` flag, `strategy-config-changed` event, and connected/disconnected callbacks. Registry changes now debounce directly into `_initializeConfig`. - Fix `isStrategy` check in `hui-view._initializeConfig` to use the raw config (before strategy expansion) rather than the generated config. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Remove unused type * Improve viewCache cleanup * clean up * Handle custom view re-creation * Fix custom view loading --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…
…
…
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%

