MQTT Static Typing (#12433)

* MQTT Typing

* Tiny style change

* Fixes

I should've probably really sticked to limiting myself to static typing...

* Small fix 😩

Ok, this seriously shouldn't have happened.
This commit is contained in:
Otto Winter
2018-02-28 22:59:14 +01:00
committed by GitHub
parent f7e9215f5e
commit c1aaef28a9
2 changed files with 127 additions and 81 deletions

View File

@@ -8,6 +8,7 @@ import homeassistant.core
GPSType = Tuple[float, float]
ConfigType = Dict[str, Any]
HomeAssistantType = homeassistant.core.HomeAssistant
ServiceDataType = Dict[str, Any]
# Custom type for recorder Queries
QueryType = Any