diff --git a/src/components/tile/ha-tile-image.ts b/src/components/tile/ha-tile-image.ts
index 783b22583b..7ecb5af008 100644
--- a/src/components/tile/ha-tile-image.ts
+++ b/src/components/tile/ha-tile-image.ts
@@ -1,4 +1,4 @@
-import { CSSResultGroup, html, css, LitElement, TemplateResult } from "lit";
+import { CSSResultGroup, html, css, LitElement, nothing } from "lit";
import { customElement, property } from "lit/decorators";
import { ifDefined } from "lit/directives/if-defined";
@@ -8,12 +8,12 @@ export class HaTileImage extends LitElement {
@property() public imageAlt?: string;
- protected render(): TemplateResult {
+ protected render() {
return html`
${this.imageUrl
? html`

`
- : null}
+ : nothing}
`;
}
diff --git a/src/components/tile/ha-tile-info.ts b/src/components/tile/ha-tile-info.ts
index 5aa224884a..b28e373077 100644
--- a/src/components/tile/ha-tile-info.ts
+++ b/src/components/tile/ha-tile-info.ts
@@ -1,4 +1,11 @@
-import { CSSResultGroup, html, css, LitElement, TemplateResult } from "lit";
+import {
+ CSSResultGroup,
+ html,
+ css,
+ LitElement,
+ TemplateResult,
+ nothing,
+} from "lit";
import { customElement, property } from "lit/decorators";
@customElement("ha-tile-info")
@@ -7,13 +14,13 @@ export class HaTileInfo extends LitElement {
@property() public secondary?: string | TemplateResult<1>;
- protected render(): TemplateResult {
+ protected render() {
return html`
${this.primary}
${this.secondary
? html`${this.secondary}`
- : null}
+ : nothing}
`;
}
diff --git a/src/dialogs/more-info/controls/more-info-fan.ts b/src/dialogs/more-info/controls/more-info-fan.ts
index b094d723bd..701dff67a2 100644
--- a/src/dialogs/more-info/controls/more-info-fan.ts
+++ b/src/dialogs/more-info/controls/more-info-fan.ts
@@ -15,7 +15,6 @@ import {
LitElement,
nothing,
PropertyValues,
- TemplateResult,
} from "lit";
import { customElement, property, state } from "lit/decorators";
import { stopPropagation } from "../../../common/dom/stop_propagation";
@@ -114,9 +113,9 @@ class MoreInfoFan extends LitElement {
}
}
- protected render(): TemplateResult | null {
+ protected render() {
if (!this.hass || !this.stateObj) {
- return null;
+ return nothing;
}
const supportsSpeed = supportsFeature(
@@ -185,7 +184,7 @@ class MoreInfoFan extends LitElement {
`
- : null}
+ : nothing}
${supportsDirection
? html`
`
- : null}
+ : nothing}
${supportsColorTemp || supportsColor
? html`
`
- : null}
+ : nothing}
${supportsWhite
? html`
`
- : null}
+ : nothing}
${supportsEffects && this.stateObj.attributes.effect_list
? html`
`
- : null}
+ : nothing}
`
- : null}
+ : nothing}