mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-12 12:30:47 +00:00
Prefer nothing over empty templates (#15633)
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
import "@polymer/paper-tooltip/paper-tooltip";
|
||||
import { ComboBoxLightOpenedChangedEvent } from "@vaadin/combo-box/vaadin-combo-box-light";
|
||||
import { HassEntity, HassServiceTarget } from "home-assistant-js-websocket";
|
||||
import { css, CSSResultGroup, html, LitElement, unsafeCSS } from "lit";
|
||||
import { css, CSSResultGroup, html, LitElement, unsafeCSS, nothing } from "lit";
|
||||
import { customElement, property, query, state } from "lit/decorators";
|
||||
import { classMap } from "lit/directives/class-map";
|
||||
import { ensureArray } from "../common/array/ensure-array";
|
||||
@@ -278,7 +278,7 @@ export class HaTargetPicker extends LitElement {
|
||||
|
||||
private _renderPicker() {
|
||||
if (!this._addMode) {
|
||||
return html``;
|
||||
return nothing;
|
||||
}
|
||||
return html`<mwc-menu-surface
|
||||
open
|
||||
|
||||
Reference in New Issue
Block a user