Add type hints to helpers.condition (#20266)
This commit is contained in:
1 parent
5b8cb10ad7
commit
58bb6f2e99
6 files changed
+101
-55
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user