From 8244d1aaf84a62522b54d73b5d577c72e41c97e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 5 Feb 2025 17:40:52 -0800 Subject: [PATCH] home-assistant: pin paho-mqtt to v1 --- .../home-assistant/component-packages.nix | 32 +++++++++---------- pkgs/servers/home-assistant/default.nix | 2 ++ .../update-component-packages.py | 2 +- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 076ed0dc09e0..132e2528e0fa 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -376,7 +376,7 @@ "arwn" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "aseko_pool_live" = ps: with ps; [ @@ -471,7 +471,7 @@ ps: with ps; [ aiohasupervisor axis - paho-mqtt_1 + paho-mqtt ]; "azure_data_explorer" = ps: @@ -1242,7 +1242,7 @@ ps: with ps; [ aiohasupervisor dropmqttapi - paho-mqtt_1 + paho-mqtt ]; "dsmr" = ps: with ps; [ @@ -1251,7 +1251,7 @@ "dsmr_reader" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "dublin_bus_transport" = ps: with ps; [ @@ -1854,7 +1854,7 @@ "fully_kiosk" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt python-fullykiosk ]; "futurenow" = @@ -3280,7 +3280,7 @@ "manual_mqtt" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "marantz" = ps: with ps; [ @@ -3646,27 +3646,27 @@ "mqtt" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "mqtt_eventstream" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "mqtt_json" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "mqtt_room" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "mqtt_statestream" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "msteams" = ps: with ps; [ @@ -3698,7 +3698,7 @@ "mysensors" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt pymysensors ]; "mystrom" = @@ -4173,7 +4173,7 @@ hassil home-assistant-intents mutagen - paho-mqtt_1 + paho-mqtt pymicro-vad pynacl pyspeex-noise @@ -4460,7 +4460,7 @@ "qbus" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt qbusmqttapi ]; "qingping" = @@ -5239,7 +5239,7 @@ "snips" = ps: with ps; [ aiohasupervisor - paho-mqtt_1 + paho-mqtt ]; "snmp" = ps: with ps; [ @@ -5583,7 +5583,7 @@ ps: with ps; [ aiohasupervisor hatasmota - paho-mqtt_1 + paho-mqtt ]; "tautulli" = ps: with ps; [ diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index d3f0436672bc..e2820564630a 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -161,6 +161,8 @@ let }; }); + paho-mqtt = super.paho-mqtt_1; + pymelcloud = super.pymelcloud.overridePythonAttrs (oldAttrs: { version = "2.5.9"; src = fetchFromGitHub { diff --git a/pkgs/servers/home-assistant/update-component-packages.py b/pkgs/servers/home-assistant/update-component-packages.py index d3d66a24eca2..d4b6c5ca8dc2 100755 --- a/pkgs/servers/home-assistant/update-component-packages.py +++ b/pkgs/servers/home-assistant/update-component-packages.py @@ -44,7 +44,7 @@ PKG_PREFERENCES = { "ha-av": "av", "numpy": "numpy", "ollama-hass": "ollama", - "paho-mqtt": "paho-mqtt_1", + "paho-mqtt": "paho-mqtt", "pyhive-integration": "pyhiveapi", # https://github.com/home-assistant/core/pull/135482 "pysuezV2": "pysuez", "sentry-sdk": "sentry-sdk",