From e2ce1d05aeb825efcc324d0e4ac38fd868e80875 Mon Sep 17 00:00:00 2001 From: Mister Wil <1091741+MisterWil@users.noreply.github.com> Date: Sat, 23 Sep 2017 23:22:15 -0700 Subject: [PATCH] Fixed bug with all switch devices being excluded (#9555) --- homeassistant/components/switch/abode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/switch/abode.py b/homeassistant/components/switch/abode.py index 63fe6b9f7b8..0ce1ddc59f8 100644 --- a/homeassistant/components/switch/abode.py +++ b/homeassistant/components/switch/abode.py @@ -27,7 +27,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): # Get all regular switches that are not excluded or marked as lights for device in data.abode.get_devices(generic_type=CONST.TYPE_SWITCH): - if data.is_excluded(device) or not data.is_light(device): + if data.is_excluded(device) or data.is_light(device): continue devices.append(AbodeSwitch(data, device))