Add check_untyped_defs (#15510)

* Add check_untyped_defs

* Change to regular if-else
This commit is contained in:
Andrey authored and Paulus Schoutsen committed 2018-07-18 00:28:44 +02:00
1 parent 7d7c2104ea
commit 24d2261060
15 files changed
+70 -44

No files matched your search

+1 -1
View File
@@ -293,7 +293,7 @@ def async_enable_logging(hass: core.HomeAssistant,
async def async_stop_async_handler(event):
"""Cleanup async handler."""
logging.getLogger('').removeHandler(async_handler)
logging.getLogger('').removeHandler(async_handler) # type: ignore
await async_handler.async_close(blocking=True)
hass.bus.async_listen_once(