Skip to content

Experimental decorator manager #777

Experimental decorator manager

Experimental decorator manager #777

Triggered via pull request March 13, 2026 22:53
Status Failure
Total duration 4m 59s
Artifacts

validate.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
Run tests: tests/test_decorator_errors.py#L350
test_service_wrong_arg_type assert "TypeError: function 'func5' defined in file.hello: decorator @service argument 1 should be a string" in "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" + where "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" = <_pytest.logging.LogCaptureFixture object at 0x7ff5f68fc950>.text
Run tests: tests/test_decorator_errors.py#L330
test_service_state_active_extra_args assert "TypeError: function 'func4' defined in file.hello: decorator @state_active got 2 arguments, expected 1" in "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...for abstract methods 'start', 'stop'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" + where "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...for abstract methods 'start', 'stop'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" = <_pytest.logging.LogCaptureFixture object at 0x7ff5f6972d50>.text
Run tests: tests/test_decorator_errors.py#L310
test_service_reload_error assert "SyntaxError: function 'reload' defined in file.hello: @service conflicts with builtin service" in "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" + where "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" = <_pytest.logging.LogCaptureFixture object at 0x7ff5f6a618c0>.text
Run tests: tests/test_decorator_errors.py#L290
test_decorator_errors_bad_arg_type2 assert "TypeError: function 'func11' defined in file.hello: decorator @state_trigger argument 1 should be a string" in "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" + where "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" = <_pytest.logging.LogCaptureFixture object at 0x7ff5f6a63f00>.text
Run tests: tests/test_decorator_errors.py#L270
test_decorator_errors_bad_arg_type assert "TypeError: function 'func10' defined in file.hello: decorator @state_trigger argument 1 should be a string, or list, or set" in "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" + where "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" = <_pytest.logging.LogCaptureFixture object at 0x7ff5f476f770>.text
Run tests: tests/test_decorator_errors.py#L250
test_decorator_errors_missing_arg2 assert "TypeError: function 'func9' defined in file.hello: decorator @event_trigger needs at least one argument" in "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" + where "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" = <_pytest.logging.LogCaptureFixture object at 0x7ff5f6a7de00>.text
Run tests: tests/test_decorator_errors.py#L230
test_decorator_errors_missing_arg assert "TypeError: function 'func8' defined in file.hello: decorator @state_trigger needs at least one argument" in "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" + where "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...al' object has no attribute 'lineno'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" = <_pytest.logging.LogCaptureFixture object at 0x7ff5f6a7ed70>.text
Run tests: tests/test_decorator_errors.py#L210
test_decorator_errors_missing_trigger assert 'func4 defined in file.hello: needs at least one trigger decorator (ie: event_trigger, mqtt_trigger, state_trigger, time_trigger, webhook_trigger)' in "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...for abstract methods 'start', 'stop'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" + where "INFO homeassistant.loader:loader.py:784 Loaded pyscript from custom_components.pyscript\nWARNING homeassistant.l...for abstract methods 'start', 'stop'\n\nERROR custom_components.pyscript:__init__.py:738 Failed to load /hello.py\n" = <_pytest.logging.LogCaptureFixture object at 0x7ff5f6967d90>.text
Run tests: tests/test_decorator_errors.py#L153
test_decorator_errors TimeoutError
Run tests: tests/test_apps_modules.py#L195
test_service_exists AssertionError: assert False + where False = has_service('pyscript', 'func1') + where has_service = <homeassistant.core.ServiceRegistry object at 0x7ff5f70a7970>.has_service + where <homeassistant.core.ServiceRegistry object at 0x7ff5f70a7970> = <HomeAssistant RUNNING>.services
validate
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Check style formatting
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v2, astral-sh/ruff-action@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Run pylint
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v2, actions/setup-python@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Run pylint
Unexpected input(s) 'allow-prereleases', valid inputs are ['python-version', 'architecture']
Run tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v2, actions/setup-python@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Run tests
Unexpected input(s) 'allow-prereleases', valid inputs are ['python-version', 'architecture']
Run mypy
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v2, actions/setup-python@v1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Run mypy
Unexpected input(s) 'allow-prereleases', valid inputs are ['python-version', 'architecture']