mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Add label to location selector (#17402)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
dac7c0f5fd
commit
6b33b4e656
@ -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;
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user