From 3522b963f5afe5d14adc08910e130f67d87af4ed Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 16 Dec 2023 04:51:59 +0100 Subject: [PATCH] home-assistant: pin aioesphomeapi at 19.2.1 Later versions introduced incompatibilities in the bluetooth scanner. --- pkgs/servers/home-assistant/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 2323db5b085c..29427a31c1be 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -30,6 +30,16 @@ let # Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt (self: super: { + aioesphomeapi = super.aioesphomeapi.overridePythonAttrs (oldAttrs: rec { + version = "19.2.1"; + src = fetchFromGitHub { + owner = "esphome"; + repo = "aioesphomeapi"; + rev = "refs/tags/v${version}"; + hash = "sha256-WSWGO0kI1m6oaImUYZ6m5WKJ+xPs/rtn5wVq1bDr+bE="; + }; + }); + # https://github.com/home-assistant/core/pull/101913 aiohttp = super.aiohttp.overridePythonAttrs (old: rec { version = "3.9.1";