From 96fbeb04ef9b75832ea0c36c6a3980e87b2bbfa1 Mon Sep 17 00:00:00 2001 From: marthsincemelee Date: Sun, 10 May 2026 21:35:44 +0200 Subject: [PATCH] fix(home-assistant): nest name/unit_system under homeassistant block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- modules/environments/home-assistant/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/environments/home-assistant/default.nix b/modules/environments/home-assistant/default.nix index cbc5651..3a849cf 100644 --- a/modules/environments/home-assistant/default.nix +++ b/modules/environments/home-assistant/default.nix @@ -36,8 +36,10 @@ in ]; }; services.home-assistant.config = { - name = "Home - Rechberg"; - unit_system = "metric"; + homeassistant = { + name = "Home - Rechberg"; + unit_system = "metric"; + }; mobile_app = {}; };