return a datetime on success

This commit is contained in:
Øyvind Saltvik 2012-08-10 21:00:40 +02:00
parent c5c64435cf
commit 5cfd91717f
2 changed files with 16 additions and 3 deletions

View file

@ -16,7 +16,7 @@ while True:
if result:
value, timestamp = result
print "Temperature:\t%sC\t(%s)\n" % (value, str(timestamp))
if dataTypes & telldus.TELLSTICK_HUMIDITY:
result = telldus.tdSensorValue(protocol, model, sensorId, telldus.TELLSTICK_HUMIDITY)
if result: