Fix formatting for chore switch comments in chore-tracker configuration
This commit is contained in:
@@ -120,7 +120,8 @@ font:
|
||||
# ── Switches — one per chore per kid, synced to HA ───────────────────────────
|
||||
switch:
|
||||
|
||||
# ── Jordyn's chores ────────────────────────── - platform: template
|
||||
# ── Jordyn's chores ──────────────────────────
|
||||
- platform: template
|
||||
name: "Jordyn - Make Bed"
|
||||
id: jordyn_make_bed
|
||||
icon: mdi:checkbox-marked-circle
|
||||
@@ -221,7 +222,8 @@ switch:
|
||||
data:
|
||||
entity_id: switch.chore_tracker_jordyn_feed_dog
|
||||
|
||||
# ── Declan's chores ────────────────────────── - platform: template
|
||||
# ── Declan's chores ──────────────────────────
|
||||
- platform: template
|
||||
name: "Declan - Make Bed"
|
||||
id: declan_make_bed
|
||||
icon: mdi:checkbox-marked-circle
|
||||
@@ -302,7 +304,8 @@ switch:
|
||||
data:
|
||||
entity_id: switch.chore_tracker_declan_take_out_trash
|
||||
|
||||
# ── Chloe's chores ────────────────────────── - platform: template
|
||||
# ── Chloe's chores ──────────────────────────
|
||||
- platform: template
|
||||
name: "Chloe - Make Bed"
|
||||
id: chloe_make_bed
|
||||
icon: mdi:checkbox-marked-circle
|
||||
|
||||
@@ -65,7 +65,7 @@ def gen_esphome(cfg: dict) -> str:
|
||||
for kid in kids:
|
||||
chores = get_chores(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:
|
||||
e = eid(kid, chore)
|
||||
switch_blocks.append(f"""\
|
||||
|
||||
Reference in New Issue
Block a user