Bunch of fixes and cleanup (#11636)

This commit is contained in:
Bram Kragten
2022-02-10 15:24:47 +01:00
committed by GitHub
parent fd80408de2
commit 0eeed85193
27 changed files with 163 additions and 136 deletions

View File

@@ -1,5 +1,5 @@
import type { HassEntity } from "home-assistant-js-websocket";
import { html, LitElement, TemplateResult } from "lit";
import { css, html, LitElement, TemplateResult } from "lit";
import { customElement, property } from "lit/decorators";
import { fireEvent } from "../../common/dom/fire_event";
import { isValidEntityId } from "../../common/entity/valid_entity_id";
@@ -145,6 +145,12 @@ class HaEntitiesPickerLight extends LitElement {
this._updateEntities([...currentEntities, toAdd]);
}
static override styles = css`
ha-entity-picker {
margin-top: 8px;
}
`;
}
declare global {

View File

@@ -111,7 +111,9 @@ class HaStatisticsPicker extends LitElement {
display: block;
}
ha-statistic-picker {
display: block;
width: 100%;
margin-top: 8px;
}
`;
}