From 7f625ae39d42011dfae82d1efa200c2a21da9784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 1 Jun 2024 21:58:19 +0200 Subject: [PATCH] Fix ha after move to unstable --- services/home-assistant/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/services/home-assistant/default.nix b/services/home-assistant/default.nix index f8972f3..9b0e50a 100644 --- a/services/home-assistant/default.nix +++ b/services/home-assistant/default.nix @@ -1,11 +1,12 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { # Enable the Home Assistant service services.home-assistant = { enable = true; + package = pkgs.unstable.home-assistant; configWritable = true; config = null; - extraPackages = python3Packages: with pkgs.python3Packages; [ + extraPackages = python3Packages: with pkgs.unstable.python312Packages; [ aiopyarr zigpy-cc zigpy-znp @@ -21,6 +22,8 @@ pyunifiprotect unifi-discovery universal-silabs-flasher + vacuum-map-parser-base + vacuum-map-parser-roborock python-roborock ]; customComponents = with pkgs.home-assistant-custom-components; [ @@ -45,6 +48,12 @@ enable = true; package = pkgs.unstable.zigbee2mqtt; settings = { + homeassistant = { + legacy_entity_attributes = false; + legacy_triggers = false; + }; + availability = true; + frontend = true; permit_join = false; serial.port = "/dev/ttyUSB0"; };