fix(home-assistant): nest name/unit_system under homeassistant block

HA expects \`name\` and \`unit_system\` as keys of the top-level
\`homeassistant:\` block, not as top-level integration names. Recent HA
versions tightened config validation, so this surfaced as
"Integration 'unit_system' not found" / "Integration 'name' not found"
warnings, blocking the automation reload that runs after saving an
automation in the UI.

Pre-existing bug, unrelated to OTBR — surfaced now because automation
edits trigger strict validation. Bonus: NixOS auto-populates
\`time_zone\` from the system locale once \`homeassistant\` is a real block.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
marthsincemelee
2026-05-10 21:35:44 +02:00
parent 68f2c65246
commit 96fbeb04ef
@@ -36,8 +36,10 @@ in
]; ];
}; };
services.home-assistant.config = { services.home-assistant.config = {
name = "Home - Rechberg"; homeassistant = {
unit_system = "metric"; name = "Home - Rechberg";
unit_system = "metric";
};
mobile_app = {}; mobile_app = {};
}; };