Type hint additions (#26765)

This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2019-09-20 08:23:34 -07:00
1 parent 6a3132344c
commit 54242cd65c
10 files changed
+60 -52

No files matched your search

+4 -5
View File
@@ -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