Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Jun 5, 2024
2 parents 8ff8c01 + cd73b8a commit a8366c6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 41 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/data/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
58 changes: 26 additions & 32 deletions src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ export class HaVoiceCommandDialog extends LitElement {
<div class="messages">
<div class="messages-container" id="scroll-container">
${this._conversation!.map(
// New lines matter for messages
// prettier-ignore
(message) => html`
<div class=${this._computeMessageClasses(message)}>
${message.text}
</div>
<div class=${this._computeMessageClasses(message)}>${message.text}</div>
`
)}
</div>
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -427,34 +427,28 @@ export class HaVoiceCommandDialog extends LitElement {
private async _showNotSupportedMessage() {
this._addMessage({
who: "hass",
text: html`
<p>
${this.hass.localize(
"ui.dialogs.voice_command.not_supported_microphone_browser"
)}
</p>
<p>
${this.hass.localize(
"ui.dialogs.voice_command.not_supported_microphone_documentation",
{
documentation_link: html`
<a
target="_blank"
rel="noopener noreferrer"
href=${documentationUrl(
this.hass,
"/docs/configuration/securing/#remote-access"
)}
>
${this.hass.localize(
"ui.dialogs.voice_command.not_supported_microphone_documentation_link"
)}
</a>
`,
}
)}
</p>
`,
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`<a
target="_blank"
rel="noopener noreferrer"
href=${documentationUrl(
this.hass,
"/docs/configuration/securing/#remote-access"
)}
>${this.hass.localize(
"ui.dialogs.voice_command.not_supported_microphone_documentation_link"
)}</a>`,
}
)}`,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a8366c6

Please sign in to comment.