fix example
This commit is contained in:
parent
9d11cfb07f
commit
cce0c16801
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ print "Devices: %d\n" % devices
|
|||
allMethods = telldus.TELLDUS_TURNON | telldus.TELLDUS_TURNOFF | telldus.TELLDUS_BELL | telldus.TELLDUS_DIM
|
||||
|
||||
for i in xrange(devices):
|
||||
deviceid = telldus.tdGetDeviceId(i);
|
||||
deviceid = telldus.tdGetDeviceId(i)
|
||||
name = tdGetName(id)
|
||||
|
||||
print "%s - %s\n" % (deviceid, name)
|
||||
|
@ -31,7 +31,7 @@ for i in xrange(devices):
|
|||
telldus.tdBell(deviceid)
|
||||
time.sleep(1)
|
||||
|
||||
if methods & telldus.TELLDUS_TOGGLE
|
||||
if methods & telldus.TELLDUS_TOGGLE:
|
||||
print " * Toggle\n"
|
||||
|
||||
if methods & telldus.TELLDUS_DIM:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue