Accept weather_entity on the quest log card

This commit is contained in:
2026-09-20 18:35:53 -04:00
parent 6d87b1e595
commit 5278f130bd
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -4,6 +4,10 @@ import panelTokens from "../../../custom_components/nestquest/www/nestquest-pane
import { registerCustomCard, type CardConfig, type HassLike } from "../types";
type QuestLogCardConfig = CardConfig & {
weather_entity?: string;
};
type StateObject = {
state: unknown;
attributes?: Record<string, unknown> | null;
@@ -1344,7 +1348,7 @@ export class NestQuestQuestLogCard extends LitElement {
static styles = [unsafeCSS(panelTokens), logStyles];
hass?: HassLike;
_config?: CardConfig;
_config?: QuestLogCardConfig;
_now = new Date();
_confirm: number | null = null;
/** instanceId → the completion instant stamped before the service has
@@ -1358,7 +1362,7 @@ export class NestQuestQuestLogCard extends LitElement {
private _toastTimer?: number;
private _completeTimer?: number;
setConfig(config: CardConfig): void {
setConfig(config: QuestLogCardConfig): void {
if (!config || typeof config !== "object") {
throw new Error("Invalid configuration");
}