mirror of
https://github.com/home-assistant/frontend.git
synced 2026-07-08 15:03:58 +01:00
0c25f061ef
The preset ranges in ha-date-range-picker were computed once in connectedCallback(). If the component connected before the translation chunk containing the range labels had loaded, localize() returned an empty string for every key, collapsing all presets into a single empty-keyed entry — the preset list rendered blank and never recovered. Compute _ranges in willUpdate() instead, recomputing whenever _i18n, _hassConfig, or extendedPresets changes. This also fixes the presets not updating when the locale or timezone changes while the page is open. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>