Fixed issue #3760, handle X10 unit numbers greater than 9. (#3763)

This commit is contained in:
mtl010957 authored and Paulus Schoutsen committed 2016-10-08 14:42:24 -07:00
1 parent dba5c74c8f
commit 78cbfa3f96
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@ def get_status():
def get_unit_status(code):
"""Get on/off status for given unit."""
unit = int(code[1])
unit = int(code[1:])
return get_status()[16 - int(unit)] == '1'