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" 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", ]; 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); } 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"); 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; } `; 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/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] = []; 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) ), 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)",