Skip to content

Commit

Permalink
Merge pull request #272403 from mweinelt/lovelace-entrypoint-fix
Browse files Browse the repository at this point in the history
nixos/home-automation: fix lovelace card entrypoint
  • Loading branch information
mweinelt authored Dec 6, 2023
2 parents 254903f + 7667190 commit 325eb62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nixos/modules/services/home-automation/home-assistant.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ buildNpmPackage rec {
runHook postInstall
'';

passthru.entrypoint = "light-entity-card";
passthru.entrypoint = "light-entity-card.js";

meta = with lib; {
description = "Control any light or switch entity";
Expand Down

0 comments on commit 325eb62

Please sign in to comment.