From 56a0625c0ffb082cfc5f20d45e70099d48a194a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 7 May 2026 00:16:32 +0200 Subject: [PATCH] home-assistant-custom-components.powercalc: apply patch to fix home-assistant 2026.5.0 compatibility --- .../custom-components/powercalc/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/servers/home-assistant/custom-components/powercalc/package.nix b/pkgs/servers/home-assistant/custom-components/powercalc/package.nix index e51cbf410e3a..b3b4fb99e2d4 100644 --- a/pkgs/servers/home-assistant/custom-components/powercalc/package.nix +++ b/pkgs/servers/home-assistant/custom-components/powercalc/package.nix @@ -2,6 +2,7 @@ lib, buildHomeAssistantComponent, fetchFromGitHub, + fetchpatch, # dependencies numpy, @@ -26,6 +27,14 @@ buildHomeAssistantComponent rec { hash = "sha256-Tm9h6ZHByuiM9XZz3D1TZR3ISbb16l0K1Vy8sJxI4+s="; }; + patches = [ + # Fix compatibility with Home-Assistant 2026.5.0 + (fetchpatch { + url = "https://github.com/bramstroker/homeassistant-powercalc/commit/3d5e162954c21adfd9251c4d8e21872e66680454.patch"; + hash = "sha256-7InjKxT8gPiR2IvLbA4oZpkgPRJbQY39SF4YNPilp4k="; + }) + ]; + dependencies = [ numpy ]; nativeCheckInputs = [