From f31a7c3af0a39f9aabadcbfe66d16b1593741274 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Tue, 3 Jan 2023 07:09:18 -0300 Subject: [PATCH 1/8] Fix issue with reload not working sometimes (#14939) fixes undefined --- src/panels/lovelace/common/handle-action.ts | 2 +- src/panels/lovelace/hui-root.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panels/lovelace/common/handle-action.ts b/src/panels/lovelace/common/handle-action.ts index 6f8865f7d2..ddbbc838f3 100644 --- a/src/panels/lovelace/common/handle-action.ts +++ b/src/panels/lovelace/common/handle-action.ts @@ -46,7 +46,7 @@ export const handleAction = async ( actionConfig.confirmation && (!actionConfig.confirmation.exemptions || !actionConfig.confirmation.exemptions.some( - (e) => e.user === hass!.user!.id + (e) => e.user === hass!.user?.id )) ) { forwardHaptic("warning"); diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 37208ba078..78cf52d702 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -266,7 +266,7 @@ class HUIRoot extends LitElement { ((Array.isArray(view.visible) && !view.visible.some( (e) => - e.user === this.hass!.user!.id + e.user === this.hass!.user?.id )) || view.visible === false)) ), @@ -470,7 +470,7 @@ class HUIRoot extends LitElement { view.visible !== undefined && ((Array.isArray(view.visible) && !view.visible.some( - (e) => e.user === this.hass!.user!.id + (e) => e.user === this.hass!.user?.id )) || view.visible === false) ), From 9836912efa5746483605b4f24a962777da07fde8 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 3 Jan 2023 14:58:30 +0100 Subject: [PATCH 2/8] Display zone name in state badge (#14974) --- src/components/entity/ha-state-label-badge.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/entity/ha-state-label-badge.ts b/src/components/entity/ha-state-label-badge.ts index 35fa54748e..c51309ccfb 100644 --- a/src/components/entity/ha-state-label-badge.ts +++ b/src/components/entity/ha-state-label-badge.ts @@ -223,6 +223,10 @@ export class HaStateLabelBadge extends LitElement { if (domainStateKey) { return this.hass!.localize(`state_badge.${domainStateKey}`); } + // Person and device tracker state can be zone name + if (domain === "person" || domain === "device_tracker") { + return entityState.state; + } if (domain === "timer") { return secondsToDuration(_timerTimeRemaining); } From bf6ad3d0a5049ddcf47ad140902f804a5ed27b2d Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 3 Jan 2023 15:02:10 +0100 Subject: [PATCH 3/8] Replace ZMK by ZMW currency (#14975) --- src/components/currency-datalist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/currency-datalist.ts b/src/components/currency-datalist.ts index 439d7b9211..ef29faf56c 100644 --- a/src/components/currency-datalist.ts +++ b/src/components/currency-datalist.ts @@ -157,7 +157,7 @@ export const CURRENCIES = [ "XPF", "YER", "ZAR", - "ZMK", + "ZMW", "ZWL", ]; From 18a69d633f9f29643e70a40ece02c7a20d4a1719 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 3 Jan 2023 15:02:16 +0100 Subject: [PATCH 4/8] Add padding to device action form (#14976) --- .../automation/action/types/ha-automation-action-device_id.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panels/config/automation/action/types/ha-automation-action-device_id.ts b/src/panels/config/automation/action/types/ha-automation-action-device_id.ts index f4cf9cf800..37d641adba 100644 --- a/src/panels/config/automation/action/types/ha-automation-action-device_id.ts +++ b/src/panels/config/automation/action/types/ha-automation-action-device_id.ts @@ -158,6 +158,7 @@ export class HaDeviceAction extends LitElement { } ha-form { + display: block; margin-top: 24px; } `; From b36eba0916e6d676f7875f6183492404f05fd1b4 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Wed, 4 Jan 2023 10:44:39 +0100 Subject: [PATCH 5/8] Ensure calender event description can be edited (#14979) --- src/panels/calendar/dialog-calendar-event-editor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panels/calendar/dialog-calendar-event-editor.ts b/src/panels/calendar/dialog-calendar-event-editor.ts index 043064a300..64a7aa3321 100644 --- a/src/panels/calendar/dialog-calendar-event-editor.ts +++ b/src/panels/calendar/dialog-calendar-event-editor.ts @@ -51,7 +51,7 @@ class DialogCalendarEventEditor extends LitElement { @state() private _summary = ""; - @state() private _description = ""; + @state() private _description? = ""; @state() private _rrule?: string; @@ -87,6 +87,7 @@ class DialogCalendarEventEditor extends LitElement { const entry = params.entry!; this._allDay = isDate(entry.dtstart); this._summary = entry.summary; + this._description = entry.description; this._rrule = entry.rrule; if (this._allDay) { this._dtstart = new Date(entry.dtstart + "T00:00:00"); From 9750e0e0b5b2ebaf4ef3a24e3c473146d4a908c2 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Wed, 4 Jan 2023 05:29:47 -0500 Subject: [PATCH 6/8] Ensure Lovelace `deviceEntries` lookup handles missing keys (#14980) fixes undefined --- src/panels/lovelace/common/generate-lovelace-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/common/generate-lovelace-config.ts b/src/panels/lovelace/common/generate-lovelace-config.ts index 07b99cb22d..661334392d 100644 --- a/src/panels/lovelace/common/generate-lovelace-config.ts +++ b/src/panels/lovelace/common/generate-lovelace-config.ts @@ -59,7 +59,7 @@ const splitByAreaDevice = ( for (const entity of Object.values(entityEntries)) { const areaId = entity.area_id || - (entity.device_id && deviceEntries[entity.device_id].area_id); + (entity.device_id && deviceEntries[entity.device_id]?.area_id); if (areaId && areaId in areaEntries && entity.entity_id in allEntities) { if (!(areaId in areasWithEntities)) { areasWithEntities[areaId] = []; From dd109b0054c7cf51b19b0ea4a55b0ea8b0206c75 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Wed, 4 Jan 2023 11:30:15 +0100 Subject: [PATCH 7/8] Fix lokalization of MQTT config entry panel re-configure button and title (#14915) --- .../integration-panels/mqtt/mqtt-config-panel.ts | 8 ++++++-- src/translations/en.json | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts b/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts index 0656ed360e..297ad0c9d9 100644 --- a/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts +++ b/src/panels/config/integrations/integration-panels/mqtt/mqtt-config-panel.ts @@ -40,10 +40,14 @@ class HaPanelDevMqtt extends LitElement { return html`
- +
Re-configure MQTT${this.hass.localize( + "ui.panel.config.mqtt.reconfigure" + )}
diff --git a/src/translations/en.json b/src/translations/en.json index df3e8b1c90..7c66bcf349 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -3245,6 +3245,8 @@ }, "mqtt": { "title": "MQTT", + "settings_title": "MQTT settings", + "reconfigure": "Re-configure MQTT", "description_publish": "Publish a packet", "topic": "Topic", "payload": "Payload (template allowed)", From f2fa4333269a0f596c3997fec5c211cdb8d2b53f Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 4 Jan 2023 11:35:18 +0100 Subject: [PATCH 8/8] Bumped version to 20230104.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 776a80fa6b..9ecc1b760d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20230102.0" +version = "20230104.0" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md"