From d809a6f9c30d6d7dd0a87025553c28067810edf0 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 6 Dec 2023 04:29:27 +0100 Subject: [PATCH] nixos/home-automation: fix lovelace card entrypoint Only append the .js extension to the card pname, not to the specified entrypoint. --- nixos/modules/services/home-automation/home-assistant.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix index f389b2d84dab..0a399e0774d1 100644 --- a/nixos/modules/services/home-automation/home-assistant.nix +++ b/nixos/modules/services/home-automation/home-assistant.nix @@ -75,7 +75,7 @@ let # Create parts of the lovelace config that reference lovelave modules as resources customLovelaceModulesResources = { lovelace.resources = map (card: { - url = "/local/nixos-lovelace-modules/${card.entrypoint or card.pname}.js?${card.version}"; + url = "/local/nixos-lovelace-modules/${card.entrypoint or card.pname + ".js"}?${card.version}"; type = "module"; }) cfg.customLovelaceModules; };