mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Remove unused async flavor
This commit is contained in:
@@ -58,12 +58,12 @@ def _discover(hass, config, component_name, found_tellcore_devices):
|
|||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up the Tellstick component."""
|
"""Set up the Tellstick component."""
|
||||||
from tellcore.constants import TELLSTICK_DIM
|
from tellcore.constants import TELLSTICK_DIM
|
||||||
from tellcore.telldus import AsyncioCallbackDispatcher
|
from tellcore.telldus import QueuedCallbackDispatcher
|
||||||
from tellcore.telldus import TelldusCore
|
from tellcore.telldus import TelldusCore
|
||||||
|
|
||||||
try:
|
try:
|
||||||
tellcore_lib = TelldusCore(
|
tellcore_lib = TelldusCore(
|
||||||
callback_dispatcher=AsyncioCallbackDispatcher(hass.loop))
|
callback_dispatcher=QueuedCallbackDispatcher())
|
||||||
except OSError:
|
except OSError:
|
||||||
_LOGGER.exception("Could not initialize Tellstick")
|
_LOGGER.exception("Could not initialize Tellstick")
|
||||||
return False
|
return False
|
||||||
|
Reference in New Issue
Block a user