Rename DAILY_MAINS_POWER to DAILY_POWER_SOURCE
The user's preferred name. The module becomes src/energy/power_source.py and the sheet docs/energy/analyses/daily_power_source.md; the calculation and the results are unchanged (D-043). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9177982de1
commit
997e842568
17 files changed
+54
-53
No files matched your search
@@ -267,7 +267,7 @@ for (const [key, dom] of Object.entries(DATA.domains)) {
|
||||
el.id = key;
|
||||
el.querySelector(".name").textContent = name;
|
||||
el.querySelector(".status").outerHTML = chip(c);
|
||||
// Energy : sur secteur ou non, visible sans ouvrir le bloc (DAILY_MAINS_POWER, D-043) ; null = statut inconnu.
|
||||
// Energy : sur secteur ou non, visible sans ouvrir le bloc (DAILY_POWER_SOURCE, D-043) ; null = statut inconnu.
|
||||
if (key === "energy") el.querySelector(".status").insertAdjacentHTML("afterend",
|
||||
`<span class="power">${R.power_label[cur.power ?? null]}</span>`);
|
||||
el.querySelector(".meta").textContent = `${DATA.label} · ${ACTION[c] || "Check data"}`;
|
||||
|
||||
Reference in new issue
Block a user