mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Recorder typing & ensure DB ready on query (#2680)
* Recorder typing & wait on DB ready
This commit is contained in:
12
homeassistant/helpers/typing.py
Normal file
12
homeassistant/helpers/typing.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""Typing Helpers for Home-Assistant."""
|
||||
|
||||
from typing import NewType, Dict, Any
|
||||
import homeassistant.core
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
|
||||
ConfigType = NewType('ConfigType', Dict[str, Any])
|
||||
HomeAssistantType = homeassistant.core.HomeAssistant
|
||||
|
||||
# Custom type for recorder Queries
|
||||
QueryType = NewType('QueryType', Any)
|
||||
Reference in New Issue
Block a user