Update cookcli-recipe-strategy.js

This commit is contained in:
TheThomaas 2026-09-25 17:05:41 +02:00
parent abc0c966cb
commit 206e64490e

View file

@ -455,6 +455,9 @@ class CookCliRecipeViewStrategy extends HTMLElement {
if (!seconds) continue; if (!seconds) continue;
const label = `${timer.duration ?? ""} ${timer.unit ?? ""}`.trim(); const label = `${timer.duration ?? ""} ${timer.unit ?? ""}`.trim();
leftCards.push({ leftCards.push({
type: "horizontal-stack",
cards: [
{
type: "button", type: "button",
name: `Démarrer ${label}`, name: `Démarrer ${label}`,
icon: "mdi:timer-outline", icon: "mdi:timer-outline",
@ -464,8 +467,10 @@ class CookCliRecipeViewStrategy extends HTMLElement {
target: { entity_id: config.timer_entity }, target: { entity_id: config.timer_entity },
data: { duration: this._secondsToHms(seconds) }, data: { duration: this._secondsToHms(seconds) },
}, },
},
{ type: "custom:circular-timer-card", entity: config.timer_entity },
],
}); });
leftCards.push({ type: "custom:circular-timer-card", entity: config.timer_entity });
} }
} }