From 6326bb010fbc7af03662a486823fa8849720531f Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 27 Oct 2022 20:55:40 +0200 Subject: [PATCH] Only show existing weekdays (#14219) --- src/panels/profile/ha-pick-first-weekday-row.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/panels/profile/ha-pick-first-weekday-row.ts b/src/panels/profile/ha-pick-first-weekday-row.ts index 08b09af9a9..c9142efb57 100644 --- a/src/panels/profile/ha-pick-first-weekday-row.ts +++ b/src/panels/profile/ha-pick-first-weekday-row.ts @@ -31,7 +31,12 @@ class FirstWeekdayRow extends LitElement { .value=${this.hass.locale.first_weekday} @selected=${this._handleFormatSelection} > - ${Object.values(FirstWeekday).map((day) => { + ${[ + FirstWeekday.language, + FirstWeekday.monday, + FirstWeekday.saturday, + FirstWeekday.sunday, + ].map((day) => { const value = this.hass.localize( `ui.panel.profile.first_weekday.values.${day}` );