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,17 +455,22 @@ class CookCliRecipeViewStrategy extends HTMLElement {
if (!seconds) continue;
const label = `${timer.duration ?? ""} ${timer.unit ?? ""}`.trim();
leftCards.push({
type: "button",
name: `Démarrer ${label}`,
icon: "mdi:timer-outline",
tap_action: {
action: "perform-action",
perform_action: "timer.start",
target: { entity_id: config.timer_entity },
data: { duration: this._secondsToHms(seconds) },
},
type: "horizontal-stack",
cards: [
{
type: "button",
name: `Démarrer ${label}`,
icon: "mdi:timer-outline",
tap_action: {
action: "perform-action",
perform_action: "timer.start",
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 });
}
}