Skip to content

Commit

Permalink
Add label to location selector (#17402)
Browse files Browse the repository at this point in the history
Co-authored-by: Bram Kragten <[email protected]>
  • Loading branch information
joostlek and bramkragten authored Sep 25, 2023
1 parent dac7c0f commit 6b33b4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ha-selector/ha-selector-location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -78,10 +79,13 @@ export class HaLocationSelector extends LitElement {
}

static styles = css`
:host {
ha-locations-editor {
display: block;
height: 400px;
}
p {
margin-top: 0;
}
`;
}

Expand Down

0 comments on commit 6b33b4e

Please sign in to comment.