Improve PluggableActionsEntry typing (#82885)
* Improve PluggableActionsEntry typing * Add parameter typing
This commit is contained in:
parent
f8e1cb5bcf
commit
79b400d71b
1 changed files with 7 additions and 1 deletions
|
@ -78,7 +78,13 @@ class PluggableActionsEntry:
|
||||||
"""Holder to keep track of all plugs and actions for a given trigger."""
|
"""Holder to keep track of all plugs and actions for a given trigger."""
|
||||||
|
|
||||||
plugs: set[PluggableAction] = field(default_factory=set)
|
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:
|
class PluggableAction:
|
||||||
|
|
Loading…
Add table
Reference in a new issue