* Simplify date subtraction
* Enable Statistics Graph card to integrate with Energy Dashboard
Adds boolean option `energy_date_selection` to Statistics Graph card. If
true, the graph will set its time range to that specified by an Energy
Date Picker card on the same dashboard, similar to the plots on the
Energy Dashboard.
* Revert UI addition
PR reviewer suggested it was too confusing, especially without
dynamically hiding the overridden days_to_show option.
* Remove boolean param energy_date_selection
and instead activate when collection_key is specified
* Revert "Remove boolean param energy_date_selection"
This reverts commit 95cebdbbe35dcb04339b940e929fe5db0094721a.
* Don't assume !20903 has merged
* updates
* refresh when collection_key changes
---------
Co-authored-by: Andrew Reiter <reiterandrew@gmail.com>
* if isNumeric ignore CONTINUOUS_DOMAINS
* use isNumeric logic from history.ts
* removed check for stateObj.attributes.unit_of_measurement
* pass numericDevicesClasses to computeShowLogBookComponent
---------
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
The header "Description" for the Labels list only shows up as optional in a narrow view like on mobile.
This commit adds the missing string for proper localization.
* Add missing localizations for Voice Assistants > Expose headers
* Add localizable labels to Icon and Remove columns
* Variant with all changes on a single line
* Prettier?
* Revert
* Line length limited to 80 chars
* Add localizable "Filtering by config entry" to en.json
This commit adds two strings for localizing "Filtering by config entry" to the Entities panel and, referenced from there, to the Devices panel.
* Replace "Filtering by config entry" with localizable key
* Replace "Filtering by config entry" with localizable key
* Add missing comma
* Add missing }
* Add missing }
It does not happen that often that the lists of devices, entities, helpers etc. are filtered down to a single item.
But in that case the labels currently use incorrect plural which is more irritating in some languages but also wrong in English.
This commit fixes this by adding ICU syntax to all six strings so these work properly in English and all derived translations.
For languages that need a different wording for `zero` this also helps translators in extending the ICU syntax for that case.
It does not happen that often that the lists of devices, entities, helpers etc. are filtered down to a single item.
But in that case the labels currently use incorrect plural which is more irritating in some languages but also wrong in English.
This commit fixes this by adding ICU syntax to all six strings so these work properly in English and all derived translations.
For languages that need a different wording for `zero` this also helps translators in extending the ICU syntax for that case.
* Add localizable "Filtering by config entry" to en.json
This commit adds two strings for localizing "Filtering by config entry" to the Entities panel and, referenced from there, to the Devices panel.
* Replace "Filtering by config entry" with localizable key
* Replace "Filtering by config entry" with localizable key
* Add missing comma
* Add missing }
* Add missing }
* Add missing localizations for Voice Assistants > Expose headers
* Add localizable labels to Icon and Remove columns
* Variant with all changes on a single line
* Prettier?
* Revert
* Line length limited to 80 chars
The header "Description" for the Labels list only shows up as optional in a narrow view like on mobile.
This commit adds the missing string for proper localization.