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;
const label = `${timer.duration ?? ""} ${timer.unit ?? ""}`.trim();
leftCards.push({
type: "horizontal-stack",
cards: [
{
type: "button",
name: `Démarrer ${label}`,
icon: "mdi:timer-outline",
@ -464,8 +467,10 @@ class CookCliRecipeViewStrategy extends HTMLElement {
target: { entity_id: config.timer_entity },
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 });
}
}