diff --git a/src/components/ha-relative-time.ts b/src/components/ha-relative-time.ts index 1bd6e39af..a2f9e403c 100644 --- a/src/components/ha-relative-time.ts +++ b/src/components/ha-relative-time.ts @@ -13,7 +13,7 @@ import type { HomeAssistant } from "../types"; class HaRelativeTime extends UpdatingElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property({ attribute: false }) public datetime?: string; + @property({ attribute: false }) public datetime?: string | Date; private _interval?: number; diff --git a/src/dialogs/more-info/controls/more-info-sun.ts b/src/dialogs/more-info/controls/more-info-sun.ts index 80fa678ee..c5e26348e 100644 --- a/src/dialogs/more-info/controls/more-info-sun.ts +++ b/src/dialogs/more-info/controls/more-info-sun.ts @@ -44,7 +44,7 @@ class MoreInfoSun extends LitElement { >
diff --git a/src/panels/config/tags/ha-config-tags.ts b/src/panels/config/tags/ha-config-tags.ts index 50c971eb1..713b14d72 100644 --- a/src/panels/config/tags/ha-config-tags.ts +++ b/src/panels/config/tags/ha-config-tags.ts @@ -84,7 +84,7 @@ export class HaConfigTags extends SubscribeMixin(LitElement) { ${tag.last_scanned_datetime ? html`` : this.hass.localize("ui.panel.config.tags.never_scanned")}
` @@ -103,7 +103,7 @@ export class HaConfigTags extends SubscribeMixin(LitElement) { ${last_scanned_datetime ? html`` : this.hass.localize("ui.panel.config.tags.never_scanned")} `,