Fix formatting for chore switch comments in chore-tracker configuration

This commit is contained in:
Joshua King
2026-02-27 22:17:51 -05:00
parent d42a23dfab
commit 21f97a5458
2 changed files with 7 additions and 4 deletions

View File

@@ -120,7 +120,8 @@ font:
# ── Switches — one per chore per kid, synced to HA ─────────────────────────── # ── Switches — one per chore per kid, synced to HA ───────────────────────────
switch: switch:
# ── Jordyn's chores ────────────────────────── - platform: template # ── Jordyn's chores ──────────────────────────
- platform: template
name: "Jordyn - Make Bed" name: "Jordyn - Make Bed"
id: jordyn_make_bed id: jordyn_make_bed
icon: mdi:checkbox-marked-circle icon: mdi:checkbox-marked-circle
@@ -221,7 +222,8 @@ switch:
data: data:
entity_id: switch.chore_tracker_jordyn_feed_dog entity_id: switch.chore_tracker_jordyn_feed_dog
# ── Declan's chores ────────────────────────── - platform: template # ── Declan's chores ──────────────────────────
- platform: template
name: "Declan - Make Bed" name: "Declan - Make Bed"
id: declan_make_bed id: declan_make_bed
icon: mdi:checkbox-marked-circle icon: mdi:checkbox-marked-circle
@@ -302,7 +304,8 @@ switch:
data: data:
entity_id: switch.chore_tracker_declan_take_out_trash entity_id: switch.chore_tracker_declan_take_out_trash
# ── Chloe's chores ────────────────────────── - platform: template # ── Chloe's chores ──────────────────────────
- platform: template
name: "Chloe - Make Bed" name: "Chloe - Make Bed"
id: chloe_make_bed id: chloe_make_bed
icon: mdi:checkbox-marked-circle icon: mdi:checkbox-marked-circle

View File

@@ -65,7 +65,7 @@ def gen_esphome(cfg: dict) -> str:
for kid in kids: for kid in kids:
chores = get_chores(kid) chores = get_chores(kid)
ks = kid_slug(kid) ks = kid_slug(kid)
switch_blocks.append(f"\n # ── {kid['name']}'s chores ──────────────────────────") switch_blocks.append(f"\n # ── {kid['name']}'s chores ──────────────────────────\n")
for chore in chores: for chore in chores:
e = eid(kid, chore) e = eid(kid, chore)
switch_blocks.append(f"""\ switch_blocks.append(f"""\