Add type hints to helpers.condition (#20266)

This commit is contained in:
Ville Skyttä
2019-01-21 01:03:12 +02:00
committed by Fabian Affolter
parent 5b8cb10ad7
commit 58bb6f2e99
6 changed files with 101 additions and 55 deletions

View File

@@ -1,5 +1,5 @@
"""Typing Helpers for Home Assistant."""
from typing import Dict, Any, Tuple
from typing import Dict, Any, Tuple, Optional
import homeassistant.core
@@ -9,6 +9,7 @@ GPSType = Tuple[float, float]
ConfigType = Dict[str, Any]
HomeAssistantType = homeassistant.core.HomeAssistant
ServiceDataType = Dict[str, Any]
TemplateVarsType = Optional[Dict[str, Any]]
# Custom type for recorder Queries
QueryType = Any