Unverified Commit 325eb628 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #272403 from mweinelt/lovelace-entrypoint-fix

nixos/home-automation: fix lovelace card entrypoint
parents 254903f5 76671902
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
  };
+1 −1
Original line number Diff line number Diff line
@@ -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";