mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-05 17:09:48 +00:00
Pipelines: Add voice selector, implement supported languages (#16261)
This commit is contained in:
@@ -3,8 +3,8 @@ import {
|
||||
CSSResultGroup,
|
||||
html,
|
||||
LitElement,
|
||||
nothing,
|
||||
PropertyValues,
|
||||
TemplateResult,
|
||||
} from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
import memoizeOne from "memoize-one";
|
||||
@@ -74,7 +74,7 @@ export class HaLanguagePicker extends LitElement {
|
||||
);
|
||||
}
|
||||
|
||||
protected render(): TemplateResult {
|
||||
protected render() {
|
||||
const value = this.value;
|
||||
|
||||
const languageOptions = this._getLanguagesOptions(
|
||||
@@ -83,6 +83,10 @@ export class HaLanguagePicker extends LitElement {
|
||||
this.nativeName
|
||||
);
|
||||
|
||||
if (languageOptions.length === 0) {
|
||||
return nothing;
|
||||
}
|
||||
|
||||
return html`
|
||||
<ha-select
|
||||
.label=${this.label}
|
||||
|
||||
Reference in New Issue
Block a user