From 32449754896946372af69bd15b27b9607c1fa244 Mon Sep 17 00:00:00 2001 From: Stefan Jonasson Date: Wed, 23 Sep 2015 11:37:45 +0200 Subject: [PATCH] Removed logging. --- homeassistant/components/light/tellstick.py | 6 +----- homeassistant/components/switch/tellstick.py | 5 ----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/homeassistant/components/light/tellstick.py b/homeassistant/components/light/tellstick.py index 15faf673451..0791cf8120a 100644 --- a/homeassistant/components/light/tellstick.py +++ b/homeassistant/components/light/tellstick.py @@ -35,15 +35,11 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): def _device_event_callback(id_, method, data, cid): """ Called from the TelldusCore library to update one device """ - logging.getLogger(__name__).info( - "got TellCore callback {} {} {} {}".format(id_, method, data, cid)) for light_device in lights: if light_device.tellstick_device.id == id_: # Execute the update in another thread - logging.getLogger(__name__).info( - "Updating state to {}".switch_device.state()) - threading.Thread(target=light_device.update_ha_state, daemon=False, args=(True,)).start() light_device.update_ha_state(True) + break callback_id = core.register_device_event(_device_event_callback) diff --git a/homeassistant/components/switch/tellstick.py b/homeassistant/components/switch/tellstick.py index 6c00c258bed..d01718b2c4d 100644 --- a/homeassistant/components/switch/tellstick.py +++ b/homeassistant/components/switch/tellstick.py @@ -47,13 +47,8 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): def _device_event_callback(id_, method, data, cid): """ Called from the TelldusCore library to update one device """ - logging.getLogger(__name__).info( - "got TellCore callback {} {} {} {}".format(id_, method, data, cid)) for switch_device in switches: - logging.getLogger(__name__).info("checking switch {}: ".format(switch_device.tellstick_device.id)) if switch_device.tellstick_device.id == id_: - # Execute the update in another thread - logging.getLogger(__name__).info("Updating state to: {}".format(switch_device.state)) switch_device.update_ha_state() break