Added more logging.

This commit is contained in:
Stefan Jonasson 2015-09-23 11:25:08 +02:00
parent 82a06279de
commit de7a34b648

View File

@ -56,7 +56,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
# Execute the update in another thread
logging.getLogger(__name__).info(
"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)