Add AbstractTemplate class to TemplateEntity and TriggerEntity for shared functionality #236920
Annotations
10 errors
Run mypy (fully):
homeassistant/components/template/entity.py#L43
Argument 2 to "Script" has incompatible type "dict[str, Any]"; expected "Sequence[dict[str, Any]]" [arg-type]
|
Run mypy (fully):
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]
|
Run mypy (fully):
homeassistant/components/template/vacuum.py#L150
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
|
Run mypy (fully):
homeassistant/components/template/vacuum.py#L161
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
|
Run mypy (fully):
homeassistant/components/template/switch.py#L150
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
|
Run mypy (fully):
homeassistant/components/template/switch.py#L152
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
|
Run mypy (fully):
homeassistant/components/template/light.py#L195
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
|
Run mypy (fully):
homeassistant/components/template/light.py#L208
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
|
Run mypy (fully):
homeassistant/components/template/light.py#L212
Argument 3 to "add_script" of "AbstractTemplateEntity" has incompatible type "str | None"; expected "str" [arg-type]
|
Run mypy (fully):
homeassistant/components/template/light.py#L443
Incompatible types in assignment (expression has type "int", variable has type "None") [assignment]
|
Loading