mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-19 18:28:42 +00:00
506d466c036622f9afbf0b94837525bea5e21380
When users configure energy with only device consumption (no grid/solar/battery/gas/water sources), the dashboard would redirect to /config/energy instead of displaying. This occurred because _generateLovelaceConfig() returned an empty views array. The fix adds hasDeviceConsumption check and includes ENERGY_VIEW when device consumption is configured, since energy-view-strategy already supports device consumption cards.
…
…
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 - Supervisor: Instructions
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.7%
JavaScript
1.2%

