From 48df06d1c024a8dc350fa0382127b64d188f7c87 Mon Sep 17 00:00:00 2001 From: Stefan Jonasson Date: Wed, 23 Sep 2015 10:18:45 +0200 Subject: [PATCH] Added callback logging. --- homeassistant/components/light/tellstick.py | 2 ++ homeassistant/components/switch/tellstick.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/homeassistant/components/light/tellstick.py b/homeassistant/components/light/tellstick.py index f8a3a105f8c..fa8e5210309 100644 --- a/homeassistant/components/light/tellstick.py +++ b/homeassistant/components/light/tellstick.py @@ -35,6 +35,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 light_device in lights: if light_device.tellstick_device.id == id_: # Execute the update in another thread diff --git a/homeassistant/components/switch/tellstick.py b/homeassistant/components/switch/tellstick.py index e300c9959bc..a6d22fb4c99 100644 --- a/homeassistant/components/switch/tellstick.py +++ b/homeassistant/components/switch/tellstick.py @@ -47,6 +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: if switch_device.tellstick_device.id == id_: # Execute the update in another thread