Merge pull request #272403 from mweinelt/lovelace-entrypoint-fix
nixos/home-automation: fix lovelace card entrypoint
This commit is contained in:
commit
325eb628b8
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue