Merge branch 'dev'

This commit is contained in:
Bram Kragten 2024-06-05 11:42:10 +02:00
commit a8366c6416
6 changed files with 35 additions and 41 deletions

View File

@ -224,7 +224,7 @@
"object-hash": "3.0.0", "object-hash": "3.0.0",
"open": "10.1.0", "open": "10.1.0",
"pinst": "3.0.0", "pinst": "3.0.0",
"prettier": "3.2.5", "prettier": "3.3.0",
"rollup": "2.79.1", "rollup": "2.79.1",
"rollup-plugin-string": "3.0.0", "rollup-plugin-string": "3.0.0",
"rollup-plugin-terser": "7.0.2", "rollup-plugin-terser": "7.0.2",

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "home-assistant-frontend" name = "home-assistant-frontend"
version = "20240604.0" version = "20240605.0"
license = {text = "Apache-2.0"} license = {text = "Apache-2.0"}
description = "The Home Assistant frontend" description = "The Home Assistant frontend"
readme = "README.md" readme = "README.md"

View File

@ -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... // 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) => { await new Promise((r) => {
setTimeout(r, 10000); setTimeout(r, 15000);
}); });
unsubscribeEvents(); unsubscribeEvents();

View File

@ -215,10 +215,10 @@ export class HaVoiceCommandDialog extends LitElement {
<div class="messages"> <div class="messages">
<div class="messages-container" id="scroll-container"> <div class="messages-container" id="scroll-container">
${this._conversation!.map( ${this._conversation!.map(
// New lines matter for messages
// prettier-ignore
(message) => html` (message) => html`
<div class=${this._computeMessageClasses(message)}> <div class=${this._computeMessageClasses(message)}>${message.text}</div>
${message.text}
</div>
` `
)} )}
</div> </div>
@ -355,7 +355,7 @@ export class HaVoiceCommandDialog extends LitElement {
private _handleSendMessage() { private _handleSendMessage() {
if (this._messageInput.value) { if (this._messageInput.value) {
this._processText(this._messageInput.value); this._processText(this._messageInput.value.trim());
this._messageInput.value = ""; this._messageInput.value = "";
this._showSendButton = false; this._showSendButton = false;
} }
@ -427,34 +427,28 @@ export class HaVoiceCommandDialog extends LitElement {
private async _showNotSupportedMessage() { private async _showNotSupportedMessage() {
this._addMessage({ this._addMessage({
who: "hass", who: "hass",
text: html` text:
<p> // New lines matter for messages
${this.hass.localize( // prettier-ignore
html`${this.hass.localize(
"ui.dialogs.voice_command.not_supported_microphone_browser" "ui.dialogs.voice_command.not_supported_microphone_browser"
)} )}
</p>
<p>
${this.hass.localize( ${this.hass.localize(
"ui.dialogs.voice_command.not_supported_microphone_documentation", "ui.dialogs.voice_command.not_supported_microphone_documentation",
{ {
documentation_link: html` documentation_link: html`<a
<a
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
href=${documentationUrl( href=${documentationUrl(
this.hass, this.hass,
"/docs/configuration/securing/#remote-access" "/docs/configuration/securing/#remote-access"
)} )}
> >${this.hass.localize(
${this.hass.localize(
"ui.dialogs.voice_command.not_supported_microphone_documentation_link" "ui.dialogs.voice_command.not_supported_microphone_documentation_link"
)} )}</a>`,
</a>
`,
} }
)} )}`,
</p>
`,
}); });
} }

View File

@ -1113,7 +1113,7 @@
"start_listening": "Start listening", "start_listening": "Start listening",
"manage_assistants": "Manage assistants", "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_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" "not_supported_microphone_documentation_link": "the documentation"
}, },
"generic": { "generic": {

View File

@ -9086,7 +9086,7 @@ __metadata:
object-hash: "npm:3.0.0" object-hash: "npm:3.0.0"
open: "npm:10.1.0" open: "npm:10.1.0"
pinst: "npm:3.0.0" pinst: "npm:3.0.0"
prettier: "npm:3.2.5" prettier: "npm:3.3.0"
proxy-polyfill: "npm:0.3.2" proxy-polyfill: "npm:0.3.2"
punycode: "npm:2.3.1" punycode: "npm:2.3.1"
qr-scanner: "npm:1.4.2" qr-scanner: "npm:1.4.2"
@ -12110,12 +12110,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"prettier@npm:3.2.5": "prettier@npm:3.3.0":
version: 3.2.5 version: 3.3.0
resolution: "prettier@npm:3.2.5" resolution: "prettier@npm:3.3.0"
bin: bin:
prettier: bin/prettier.cjs prettier: bin/prettier.cjs
checksum: 10/d509f9da0b70e8cacc561a1911c0d99ec75117faed27b95cc8534cb2349667dee6351b0ca83fa9d5703f14127faa52b798de40f5705f02d843da133fc3aa416a checksum: 10/e55233f8e4b5f96f52180dbfa424ae797a98a9b8a9a7a79de5004e522c02b423e71927ed99d855dbfcd00dc3b82e5f6fb304cfe117cc4e7c8477d883df2d8984
languageName: node languageName: node
linkType: hard linkType: hard