Loading pkgs/servers/home-assistant/build-custom-component/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ home-assistant.python.pkgs.buildPythonPackage ( } // removeAttrs args [ "meta" "nativeCheckInputs" "nativeBuildInputs" "passthru" ] ) pkgs/servers/home-assistant/custom-components/moonraker/package.nix +2 −2 Original line number Diff line number Diff line Loading @@ -14,13 +14,13 @@ buildHomeAssistantComponent rec { owner = "marcolivierarsenault"; domain = "moonraker"; version = "1.11.1"; version = "1.12.0"; src = fetchFromGitHub { owner = "marcolivierarsenault"; repo = "moonraker-home-assistant"; tag = version; hash = "sha256-3qxTigKBZ7maUylx0NCf70tURNUWFpo2TzgxnxqjUpA="; hash = "sha256-T/7A5LmDmqaThTa1TnDbXwA0qeipIk750+k1Kt7tFeY="; }; dependencies = [ Loading pkgs/servers/home-assistant/custom-components/mypyllant/migrate-to-new-pytest-homeassistant-custom-component.patch 0 → 100644 +21 −0 Original line number Diff line number Diff line 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 pkgs/servers/home-assistant/custom-components/mypyllant/package.nix +6 −0 Original line number Diff line number Diff line { buildHomeAssistantComponent, fetchFromGitHub, fetchpatch2, lib, # dependencies Loading Loading @@ -28,6 +29,11 @@ buildHomeAssistantComponent rec { hash = "sha256-6T8SGAP2535VqZmvSeITpMIa0SBJhnWsOKM1Y66WhHE="; }; 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 Loading pkgs/servers/home-assistant/custom-components/oref_alert/package.nix +2 −2 Original line number Diff line number Diff line Loading @@ -13,13 +13,13 @@ buildHomeAssistantComponent rec { owner = "amitfin"; domain = "oref_alert"; version = "4.2.1"; version = "4.1.1"; src = fetchFromGitHub { owner = "amitfin"; repo = "oref_alert"; tag = "v${version}"; hash = "sha256-mE39/f/2SmEJ5rTHhwmgGdQga4PQPGxoj/iKA1+Ou5k="; hash = "sha256-nWp8cG0lFYUEO11lcZGkqx5QvOSfSVnqIqpHA8YAN30="; }; dependencies = [ Loading Loading
pkgs/servers/home-assistant/build-custom-component/default.nix +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ home-assistant.python.pkgs.buildPythonPackage ( } // removeAttrs args [ "meta" "nativeCheckInputs" "nativeBuildInputs" "passthru" ] )
pkgs/servers/home-assistant/custom-components/moonraker/package.nix +2 −2 Original line number Diff line number Diff line Loading @@ -14,13 +14,13 @@ buildHomeAssistantComponent rec { owner = "marcolivierarsenault"; domain = "moonraker"; version = "1.11.1"; version = "1.12.0"; src = fetchFromGitHub { owner = "marcolivierarsenault"; repo = "moonraker-home-assistant"; tag = version; hash = "sha256-3qxTigKBZ7maUylx0NCf70tURNUWFpo2TzgxnxqjUpA="; hash = "sha256-T/7A5LmDmqaThTa1TnDbXwA0qeipIk750+k1Kt7tFeY="; }; dependencies = [ Loading
pkgs/servers/home-assistant/custom-components/mypyllant/migrate-to-new-pytest-homeassistant-custom-component.patch 0 → 100644 +21 −0 Original line number Diff line number Diff line 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
pkgs/servers/home-assistant/custom-components/mypyllant/package.nix +6 −0 Original line number Diff line number Diff line { buildHomeAssistantComponent, fetchFromGitHub, fetchpatch2, lib, # dependencies Loading Loading @@ -28,6 +29,11 @@ buildHomeAssistantComponent rec { hash = "sha256-6T8SGAP2535VqZmvSeITpMIa0SBJhnWsOKM1Y66WhHE="; }; 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 Loading
pkgs/servers/home-assistant/custom-components/oref_alert/package.nix +2 −2 Original line number Diff line number Diff line Loading @@ -13,13 +13,13 @@ buildHomeAssistantComponent rec { owner = "amitfin"; domain = "oref_alert"; version = "4.2.1"; version = "4.1.1"; src = fetchFromGitHub { owner = "amitfin"; repo = "oref_alert"; tag = "v${version}"; hash = "sha256-mE39/f/2SmEJ5rTHhwmgGdQga4PQPGxoj/iKA1+Ou5k="; hash = "sha256-nWp8cG0lFYUEO11lcZGkqx5QvOSfSVnqIqpHA8YAN30="; }; dependencies = [ Loading