diff --git a/pkgs/development/python-modules/mypyllant/default.nix b/pkgs/development/python-modules/mypyllant/default.nix index 77f1f0c9980f..82563845796b 100644 --- a/pkgs/development/python-modules/mypyllant/default.nix +++ b/pkgs/development/python-modules/mypyllant/default.nix @@ -26,14 +26,14 @@ buildPythonPackage rec { pname = "mypyllant"; - version = "0.9.8"; + version = "0.9.9"; pyproject = true; src = fetchFromGitHub { owner = "signalkraft"; repo = "myPyllant"; tag = "v${version}"; - hash = "sha256-eneAFJ4xRL8EKj8Act/YcW7Gx0B85u0g3LTWPlI/B/0="; + hash = "sha256-wvqlTlcNy/ue2yfrQyS93vfRSOTsHbvARI+7BKuUuYs="; }; build-system = [ diff --git a/pkgs/servers/home-assistant/custom-components/mypyllant/migrate-to-new-pytest-homeassistant-custom-component.patch b/pkgs/servers/home-assistant/custom-components/mypyllant/migrate-to-new-pytest-homeassistant-custom-component.patch deleted file mode 100644 index 34bf35a26129..000000000000 --- a/pkgs/servers/home-assistant/custom-components/mypyllant/migrate-to-new-pytest-homeassistant-custom-component.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/tests/test_services.py b/tests/test_services.py -index 1fb07b3..f7a552c 100644 ---- a/tests/test_services.py -+++ b/tests/test_services.py -@@ -3,6 +3,7 @@ from dataclasses import asdict - - import pytest - from homeassistant.helpers.entity_registry import DATA_REGISTRY, EntityRegistry -+from homeassistant.helpers.trigger import TRIGGERS, TRIGGER_PLATFORM_SUBSCRIPTIONS - from homeassistant.loader import ( - DATA_COMPONENTS, - DATA_INTEGRATIONS, -@@ -31,6 +32,8 @@ def setup_hass_for_service_test(hass): - hass.data[DATA_PRELOAD_PLATFORMS] = {} - hass.data[DATA_MISSING_PLATFORMS] = {} - hass.data[DATA_REGISTRY] = EntityRegistry(hass) -+ hass.data[TRIGGER_PLATFORM_SUBSCRIPTIONS] = [] -+ hass.data[TRIGGERS] = {} - return hass - - diff --git a/pkgs/servers/home-assistant/custom-components/mypyllant/package.nix b/pkgs/servers/home-assistant/custom-components/mypyllant/package.nix index 4faa428147a9..58d1d6b962e9 100644 --- a/pkgs/servers/home-assistant/custom-components/mypyllant/package.nix +++ b/pkgs/servers/home-assistant/custom-components/mypyllant/package.nix @@ -19,20 +19,15 @@ buildHomeAssistantComponent rec { owner = "signalkraft"; domain = "mypyllant"; - version = "0.9.9"; + version = "0.9.10"; src = fetchFromGitHub { owner = "signalkraft"; repo = "mypyllant-component"; tag = "v${version}"; - hash = "sha256-6T8SGAP2535VqZmvSeITpMIa0SBJhnWsOKM1Y66WhHE="; + hash = "sha256-4IfLd+NEaWyxgdnAz7YGM/6i0usoqwgKlBJFzDOlJ4A="; }; - patches = [ - # Migrates tests to the new version of `pytest-homeassistant-custom-component` (see https://github.com/signalkraft/mypyllant-component/pull/394). - ./migrate-to-new-pytest-homeassistant-custom-component.patch - ]; - dependencies = [ mypyllant voluptuous