Add label to location selector (#17402)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Joost Lekkerkerker 2023-09-25 15:38:47 +02:00 committed by GitHub
parent dac7c0f5fd
commit 6b33b4e656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ export class HaLocationSelector extends LitElement {
protected render() {
return html`
<p>${this.label ? this.label : ""}</p>
<ha-locations-editor
class="flex"
.hass=${this.hass}
@ -78,10 +79,13 @@ export class HaLocationSelector extends LitElement {
}
static styles = css`
:host {
ha-locations-editor {
display: block;
height: 400px;
}
p {
margin-top: 0;
}
`;
}