Improve PluggableActionsEntry typing (#82885)

* Improve PluggableActionsEntry typing

* Add parameter typing
pull/82925/head
Marc Mueller 2022-11-29 13:37:22 +01:00 committed by GitHub
parent f8e1cb5bcf
commit 79b400d71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -78,7 +78,13 @@ class PluggableActionsEntry:
"""Holder to keep track of all plugs and actions for a given trigger."""
plugs: set[PluggableAction] = field(default_factory=set)
actions: dict[object, tuple[HassJob, dict[str, Any]]] = field(default_factory=dict)
actions: dict[
object,
tuple[
HassJob[[dict[str, Any], Context | None], Coroutine[Any, Any, None]],
dict[str, Any],
],
] = field(default_factory=dict)
class PluggableAction: