diff --git a/pkgs/servers/home-assistant/custom-components/local_luftdaten/async-timeout.patch b/pkgs/servers/home-assistant/custom-components/local_luftdaten/async-timeout.patch deleted file mode 100644 index 7872436b96dc..000000000000 --- a/pkgs/servers/home-assistant/custom-components/local_luftdaten/async-timeout.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 06a6b3ff1ae181f9972b47838569d658ba4b3d9c Mon Sep 17 00:00:00 2001 -From: Martin Weinelt -Date: Sat, 4 Oct 2025 14:45:02 +0200 -Subject: [PATCH] Use the python native asyncio timeout function - -instead of depending on the undeclared async-timeout package. ---- - custom_components/local_luftdaten/sensor.py | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/custom_components/local_luftdaten/sensor.py b/custom_components/local_luftdaten/sensor.py -index 4f4f5b4..82ea041 100644 ---- a/custom_components/local_luftdaten/sensor.py -+++ b/custom_components/local_luftdaten/sensor.py -@@ -12,7 +12,6 @@ - import asyncio - from typing import Optional - import aiohttp --import async_timeout - import datetime - - import json -@@ -170,7 +169,7 @@ async def async_update(self): - responseData = None - try: - _LOGGER.debug("Get data from %s", str(self._resource)) -- with async_timeout.timeout(30): -+ async with asyncio.timeout(30): - response = await self._session.get(self._resource) - responseData = await response.text() - _LOGGER.debug("Received data: %s", str(self.data)) diff --git a/pkgs/servers/home-assistant/custom-components/local_luftdaten/package.nix b/pkgs/servers/home-assistant/custom-components/local_luftdaten/package.nix index de343fbe27da..62031f8dcbce 100644 --- a/pkgs/servers/home-assistant/custom-components/local_luftdaten/package.nix +++ b/pkgs/servers/home-assistant/custom-components/local_luftdaten/package.nix @@ -7,19 +7,15 @@ buildHomeAssistantComponent rec { owner = "lichtteil"; domain = "local_luftdaten"; - version = "2.3.1"; + version = "2.4.0"; src = fetchFromGitHub { owner = "lichtteil"; repo = "local_luftdaten"; - rev = version; - hash = "sha256-68clZgS7Qo62srcZWD3Un9BnNSwQUBr4Z5oBMTC9m8o="; + tag = version; + hash = "sha256-K8sQ/xm9aoJ6EBF9H9Y87m7a0OZN4y6T3DFZcSpPYOI="; }; - # https://github.com/lichtteil/local_luftdaten/pull/70 - # Replace undeclared async-timeout dependency with native asyncio.timeout - patches = [ ./async-timeout.patch ]; - meta = { changelog = "https://github.com/lichtteil/local_luftdaten/releases/tag/${version}"; description = "Custom component for Home Assistant that integrates your (own) local Luftdaten sensor (air quality/particle sensor) without using the cloud";