fix: also remove applyDefaultConfig

This commit is contained in:
2025-04-29 09:45:49 +02:00
parent dafbdfe3cb
commit e44876445a

View File

@@ -8,10 +8,7 @@ let
}) {}; }) {};
haOld = config.services.home-assistant; haOld = config.services.home-assistant;
# 2) If it still has the removed key, drop it: haClean = builtins.removeAttrs haOld [ "autoExtraComponents" "applyDefaultConfig" ];
haClean = if builtins.hasAttr "autoExtraComponents" haOld
then builtins.removeAttrs haOld [ "autoExtraComponents" ]
else haOld;
home-assistant-config = lib.recursiveUpdate haClean { home-assistant-config = lib.recursiveUpdate haClean {
package = pkgs-with-home-assistant.home-assistant; package = pkgs-with-home-assistant.home-assistant;