From 78cbfa3f9630d5272e1e7a159bfe477e98a58fe6 Mon Sep 17 00:00:00 2001 From: mtl010957 Date: Sat, 8 Oct 2016 15:57:40 -0400 Subject: [PATCH] Fixed issue #3760, handle X10 unit numbers greater than 9. (#3763) --- homeassistant/components/light/x10.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/x10.py b/homeassistant/components/light/x10.py index 499bd7513a6..30ede3eac18 100644 --- a/homeassistant/components/light/x10.py +++ b/homeassistant/components/light/x10.py @@ -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'