mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Added more logging.
This commit is contained in:
parent
de7a34b648
commit
86270e1a37
@ -50,14 +50,11 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||||||
logging.getLogger(__name__).info(
|
logging.getLogger(__name__).info(
|
||||||
"got TellCore callback {} {} {} {}".format(id_, method, data, cid))
|
"got TellCore callback {} {} {} {}".format(id_, method, data, cid))
|
||||||
for switch_device in switches:
|
for switch_device in switches:
|
||||||
logging.getLogger(__name__).info(
|
logging.getLogger(__name__).info("checking switch {}: ".format(switch_device.tellstick_device.id))
|
||||||
"checking switch {}".format(switch_device.tellstick_device.id))
|
|
||||||
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
|
||||||
logging.getLogger(__name__).info(
|
logging.getLogger(__name__).info("Updating state to: {}".fromat(method))
|
||||||
"Updating state to {}".fromat(method))
|
|
||||||
#threading.Thread(target=switch_device.update_ha_state, daemon=False).start()
|
#threading.Thread(target=switch_device.update_ha_state, daemon=False).start()
|
||||||
break
|
|
||||||
|
|
||||||
callback_id = core.register_device_event(_device_event_callback)
|
callback_id = core.register_device_event(_device_event_callback)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user