Update cookcli-recipe-strategy.js
This commit is contained in:
parent
abc0c966cb
commit
206e64490e
|
|
@ -455,17 +455,22 @@ 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: "button",
|
type: "horizontal-stack",
|
||||||
name: `Démarrer ${label}`,
|
cards: [
|
||||||
icon: "mdi:timer-outline",
|
{
|
||||||
tap_action: {
|
type: "button",
|
||||||
action: "perform-action",
|
name: `Démarrer ${label}`,
|
||||||
perform_action: "timer.start",
|
icon: "mdi:timer-outline",
|
||||||
target: { entity_id: config.timer_entity },
|
tap_action: {
|
||||||
data: { duration: this._secondsToHms(seconds) },
|
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 });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue