From ed79e893320038829b8dc99aa97c4d7b8d792729 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 5 Aug 2026 23:51:11 +0200 Subject: [PATCH] home-assistant: patch constant name in ezviz component This was capitalized differently in pyezvizapi 1.0.1.1 in August 2025 but Home Assistant is sitting on 10.0.0.7 and now added a new access to the old constant name. --- pkgs/servers/home-assistant/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 8cd1e52e69fb..8741a57bde2a 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -336,6 +336,10 @@ python3Packages.buildPythonApplication rec { substituteInPlace pyproject.toml \ --replace-fail "setuptools==78.1.1" setuptools + + # https://github.com/RenierM26/pyEzvizApi/commit/ae0651ea93f031e94e7286fa3439fcc12acfb001 + substituteInPlace homeassistant/components/ezviz/switch.py \ + --replace-fail "SupportFulldayRecord" "SupportFullDayRecord" ''; pythonRemoveDeps = [