Add AbstractTemplate class to TemplateEntity and TriggerEntity for shared functionality #236920
ci.yaml
on: pull_request
Collect information & changes data
13s
Matrix: Prepare dependencies
Matrix: lint-hadolint
Check hassfest
48s
Check all requirements
23s
Check mypy
51s
Matrix: Audit licenses
Check ruff-format
23s
Check ruff
20s
Check other linters
1m 7s
Matrix: pytest-mariadb
Matrix: pytest-partial
Matrix: pytest-postgres
Upload test coverage to Codecov (partial suite)
0s
Matrix: pytest-full
Upload test coverage to Codecov (full suite)
0s
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 |
|