From 53eb7f771f6d53d5a4f8130c8c4cbd54904374d3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:27:20 +0200 Subject: [PATCH 1/4] Update dependency prettier to v3.3.0 (#20992) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index cb9175955eea..35e7d242bfd8 100644 --- a/package.json +++ b/package.json @@ -224,7 +224,7 @@ "object-hash": "3.0.0", "open": "10.1.0", "pinst": "3.0.0", - "prettier": "3.2.5", + "prettier": "3.3.0", "rollup": "2.79.1", "rollup-plugin-string": "3.0.0", "rollup-plugin-terser": "7.0.2", diff --git a/yarn.lock b/yarn.lock index 99be9a5c1730..95d65af22cc7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9086,7 +9086,7 @@ __metadata: object-hash: "npm:3.0.0" open: "npm:10.1.0" pinst: "npm:3.0.0" - prettier: "npm:3.2.5" + prettier: "npm:3.3.0" proxy-polyfill: "npm:0.3.2" punycode: "npm:2.3.1" qr-scanner: "npm:1.4.2" @@ -12110,12 +12110,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:3.2.5": - version: 3.2.5 - resolution: "prettier@npm:3.2.5" +"prettier@npm:3.3.0": + version: 3.3.0 + resolution: "prettier@npm:3.3.0" bin: prettier: bin/prettier.cjs - checksum: 10/d509f9da0b70e8cacc561a1911c0d99ec75117faed27b95cc8534cb2349667dee6351b0ca83fa9d5703f14127faa52b798de40f5705f02d843da133fc3aa416a + checksum: 10/e55233f8e4b5f96f52180dbfa424ae797a98a9b8a9a7a79de5004e522c02b423e71927ed99d855dbfcd00dc3b82e5f6fb304cfe117cc4e7c8477d883df2d8984 languageName: node linkType: hard From 9ef0bd6e46febd3d567fa42348c57103ed8f235f Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 5 Jun 2024 03:53:40 -0400 Subject: [PATCH 2/4] Fix Assist styling (#20997) --- .../ha-voice-command-dialog.ts | 58 +++++++++---------- src/translations/en.json | 2 +- 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts b/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts index c1fab545eda8..59e023723a4b 100644 --- a/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts +++ b/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts @@ -215,10 +215,10 @@ export class HaVoiceCommandDialog extends LitElement {
${this._conversation!.map( + // New lines matter for messages + // prettier-ignore (message) => html` -
- ${message.text} -
+
${message.text}
` )}
@@ -355,7 +355,7 @@ export class HaVoiceCommandDialog extends LitElement { private _handleSendMessage() { if (this._messageInput.value) { - this._processText(this._messageInput.value); + this._processText(this._messageInput.value.trim()); this._messageInput.value = ""; this._showSendButton = false; } @@ -427,34 +427,28 @@ export class HaVoiceCommandDialog extends LitElement { private async _showNotSupportedMessage() { this._addMessage({ who: "hass", - text: html` -

- ${this.hass.localize( - "ui.dialogs.voice_command.not_supported_microphone_browser" - )} -

-

- ${this.hass.localize( - "ui.dialogs.voice_command.not_supported_microphone_documentation", - { - documentation_link: html` - - ${this.hass.localize( - "ui.dialogs.voice_command.not_supported_microphone_documentation_link" - )} - - `, - } - )} -

- `, + text: + // New lines matter for messages + // prettier-ignore + html`${this.hass.localize( + "ui.dialogs.voice_command.not_supported_microphone_browser" + )} + + ${this.hass.localize( + "ui.dialogs.voice_command.not_supported_microphone_documentation", + { + documentation_link: html`${this.hass.localize( + "ui.dialogs.voice_command.not_supported_microphone_documentation_link" + )}`, + } + )}`, }); } diff --git a/src/translations/en.json b/src/translations/en.json index 23be084a37a0..f177a4627799 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1113,7 +1113,7 @@ "start_listening": "Start listening", "manage_assistants": "Manage assistants", "not_supported_microphone_browser": "Your connection to Home Assistant is not secured using HTTPS. This causes browsers to block Home Assistant from accessing the microphone.", - "not_supported_microphone_documentation": "Visit {documentation_link} to learn how to use a secure URL", + "not_supported_microphone_documentation": "Use the Home Assistant app or visit {documentation_link} to learn how to use a secure URL", "not_supported_microphone_documentation_link": "the documentation" }, "generic": { From 74eca6b1f57d96f6ac2739f77a5453cb30ebbf4d Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 5 Jun 2024 10:13:28 +0200 Subject: [PATCH 3/4] Increase check update timeout to 15s (#20998) --- src/data/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/update.ts b/src/data/update.ts index 13c4b0d028ff..5423e4f47717 100644 --- a/src/data/update.ts +++ b/src/data/update.ts @@ -144,7 +144,7 @@ export const checkForEntityUpdates = async ( // there is no reliable way to know if all the updates are done updating, so we just wait a bit for now... await new Promise((r) => { - setTimeout(r, 10000); + setTimeout(r, 15000); }); unsubscribeEvents(); From cd73b8ac2921ff4c898f6e01de08e68e6743ce62 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 5 Jun 2024 11:41:51 +0200 Subject: [PATCH 4/4] Bumped version to 20240605.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a068c369bdf0..0a484fd42519 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20240604.0" +version = "20240605.0" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md"