Skip to content

Add AbstractTemplate class to TemplateEntity and TriggerEntity for shared functionality #236920

Add AbstractTemplate class to TemplateEntity and TriggerEntity for shared functionality

Add AbstractTemplate class to TemplateEntity and TriggerEntity for shared functionality #236920

Triggered via pull request January 26, 2025 11:24
Status Cancelled
Total duration 8m 39s
Artifacts 1

ci.yaml

on: pull_request
Collect information & changes data
13s
Collect information & changes data
Matrix: Prepare dependencies
Prepare pre-commit base
26s
Prepare pre-commit base
Matrix: lint-hadolint
Check hassfest
48s
Check hassfest
Check all requirements
23s
Check all requirements
Check mypy
51s
Check mypy
Check pylint
7m 24s
Check pylint
Check pylint on tests
5m 48s
Check pylint on tests
Matrix: Audit licenses
Check ruff-format
23s
Check ruff-format
Check ruff
20s
Check ruff
Check other linters
1m 7s
Check other linters
Matrix: pytest-mariadb
Matrix: pytest-partial
Matrix: pytest-postgres
Split tests for full run
0s
Split tests for full run
Upload test coverage to Codecov (partial suite)
0s
Upload test coverage to Codecov (partial suite)
Matrix: pytest-full
Upload test coverage to Codecov (full suite)
0s
Upload test coverage to Codecov (full suite)
Fit to window
Zoom out
Zoom in

Annotations

15 errors
Ruff (F842): tests/components/template/test_template_entity.py#L13
tests/components/template/test_template_entity.py:13:5: F842 Local variable `x` is annotated but never used
Check ruff
Process completed with exit code 1.
Check hassfest
Process completed with exit code 1.
Check mypy: homeassistant/components/template/entity.py#L43
Argument 2 to "Script" has incompatible type "dict[str, Any]"; expected "Sequence[dict[str, Any]]" [arg-type]
Check mypy: homeassistant/components/template/template_entity.py#L268
Argument 2 to "__init__" of "AbstractTemplateEntity" has incompatible type "dict[str, Any] | None"; expected "dict[str, Any]" [arg-type]
Check mypy: homeassistant/components/template/vacuum.py#L150
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
Check mypy: homeassistant/components/template/vacuum.py#L161
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
Check mypy: homeassistant/components/template/switch.py#L150
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
Check mypy: homeassistant/components/template/switch.py#L152
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
Check mypy: homeassistant/components/template/light.py#L195
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
Check mypy: homeassistant/components/template/light.py#L208
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
Check mypy: homeassistant/components/template/light.py#L212
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
Check mypy: homeassistant/components/template/light.py#L443
Incompatible types in assignment (expression has type "int", variable has type "None") [assignment]
Check pylint
Canceling since a higher priority waiting request for 'CI-136564' exists
Check pylint
The operation was canceled.

Artifacts

Produced during runtime
Name Size
pip-freeze-3.13
12.1 KB