Added callback logging.
This commit is contained in:
parent
b4ca691822
commit
48df06d1c0
2 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,8 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
|
|
||||||
def _device_event_callback(id_, method, data, cid):
|
def _device_event_callback(id_, method, data, cid):
|
||||||
""" Called from the TelldusCore library to update one device """
|
""" 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:
|
for light_device in lights:
|
||||||
if light_device.tellstick_device.id == id_:
|
if light_device.tellstick_device.id == id_:
|
||||||
# Execute the update in another thread
|
# Execute the update in another thread
|
||||||
|
|
|
@ -47,6 +47,8 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
|
|
||||||
def _device_event_callback(id_, method, data, cid):
|
def _device_event_callback(id_, method, data, cid):
|
||||||
""" Called from the TelldusCore library to update one device """
|
""" 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:
|
for switch_device in switches:
|
||||||
if switch_device.tellstick_device.id == id_:
|
if switch_device.tellstick_device.id == id_:
|
||||||
# Execute the update in another thread
|
# Execute the update in another thread
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue