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 c1fab545ed..59e023723a 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.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 23be084a37..f177a46277 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": {