Recorder typing & ensure DB ready on query (#2680)

* Recorder typing & wait on DB ready
This commit is contained in:
Johann Kellerman
2016-07-31 22:56:57 +02:00
committed by GitHub
parent 2871ab6bb0
commit e9bd5d54ad
2 changed files with 49 additions and 25 deletions

View 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)