* Show unit for number domains
* Remove duplicated code
* Allow monetary formatting
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
* Update src/common/entity/compute_state_display.ts
---------
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
The implementation of show_empty property in #21379 introduced
regression which causes Markdown cards rendered within a Grid card to
not take full height of its space. This is because a visible card is now
forced to have "display: block", while without that it's rendered as
"display: inline".
As the CSSStyleDeclaration.style mandates string type, it's not possible
to delete or null the value. Setting it to an empty string seems to do
the trick as well and the linter is happy too.
Fixes#23119
* Init new scenes in live edit mode
* Update src/panels/config/scene/ha-scene-editor.ts
Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
* imports
---------
Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
The Energy card allows the user to monitor the "Grid carbon footprint" which is visualized by the "Low-carbon energy consumed" gauge.
But this does not cover the carbon emissions of the gas consumption that might be shown right next to it, just the electrical energy from the grid.
So the labeling is very misleading in that context – not even considering energy consumed by oil or wood burned in addition.
Therefore this needs to be changed to use "electricity" just like the description already does.
* Made it easier to test the frontend against an existing core instance.
* Ensured that script works regardless of current working dir
* Use consistent quote style
* Also allow using variables in hassUrl override
* Improved the default behavior of the script
* more consistent variable naming
* don't install a global dependency
* documented caching wierdness where if you switch core endpoints the old one remains in use
* Simplified some code
* improved documentation
---------
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
The energy dashboard tracks the total energy of a home, including the gas consumption in a separate graph (if configured).
The topmost graph is currently labeled "Energy usage" but it does only cover the electricity consumption and production. Also note the "Energy distribution" next to it includes gas, too.
Thus the title is misleading and needs to be changed to "Electricity usage" to make this clearer.
* Init new scenes in live edit mode
* Update src/panels/config/scene/ha-scene-editor.ts
Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
* imports
---------
Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
* Add shortcut to open the voice assist dialog
* Add tip
* Only show dialog when enabled
* Update src/translations/en.json
---------
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>