Type hint additions (#26765)
This commit is contained in:
parent
6a3132344c
commit
54242cd65c
10 changed files with 60 additions and 52 deletions
|
@ -4,7 +4,7 @@ import logging
|
|||
from contextlib import suppress
|
||||
from datetime import datetime
|
||||
from itertools import islice
|
||||
from typing import Optional, Sequence, Callable, Dict, List, Set, Tuple
|
||||
from typing import Optional, Sequence, Callable, Dict, List, Set, Tuple, Any
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
|
@ -32,8 +32,7 @@ import homeassistant.util.dt as date_util
|
|||
from homeassistant.util.async_ import run_coroutine_threadsafe, run_callback_threadsafe
|
||||
|
||||
|
||||
# mypy: allow-incomplete-defs, allow-untyped-calls, allow-untyped-defs
|
||||
# mypy: no-check-untyped-defs
|
||||
# mypy: allow-untyped-calls, allow-untyped-defs, no-check-untyped-defs
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -101,9 +100,9 @@ class Script:
|
|||
def __init__(
|
||||
self,
|
||||
hass: HomeAssistant,
|
||||
sequence,
|
||||
sequence: Sequence[Dict[str, Any]],
|
||||
name: Optional[str] = None,
|
||||
change_listener=None,
|
||||
change_listener: Optional[Callable[..., Any]] = None,
|
||||
) -> None:
|
||||
"""Initialize the script."""
|
||||
self.hass = hass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue