Remove unused async flavor

pull/10315/head
Pascal Vizeli 2017-11-03 15:32:35 +01:00 committed by GitHub
parent 1347c3191f
commit 1c8f179690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,12 +58,12 @@ def _discover(hass, config, component_name, found_tellcore_devices):
def setup(hass, config):
"""Set up the Tellstick component."""
from tellcore.constants import TELLSTICK_DIM
from tellcore.telldus import AsyncioCallbackDispatcher
from tellcore.telldus import QueuedCallbackDispatcher
from tellcore.telldus import TelldusCore
try:
tellcore_lib = TelldusCore(
callback_dispatcher=AsyncioCallbackDispatcher(hass.loop))
callback_dispatcher=QueuedCallbackDispatcher())
except OSError:
_LOGGER.exception("Could not initialize Tellstick")
return False