From 55fb724d06e7d1e249de46acb2de7eac2eb7d14d Mon Sep 17 00:00:00 2001 From: Tom Harris Date: Wed, 21 Feb 2018 01:33:59 -0500 Subject: [PATCH] Debug new entities not being added to hass --- homeassistant/components/switch/insteon_plm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/switch/insteon_plm.py b/homeassistant/components/switch/insteon_plm.py index 3083140a954..8dd81dc2d6f 100644 --- a/homeassistant/components/switch/insteon_plm.py +++ b/homeassistant/components/switch/insteon_plm.py @@ -38,7 +38,7 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None): new_entity = InsteonPLMOpenClosedDevice(device, state_key) if new_entity is not None: - async_add_devices(new_entity) + async_add_devices([new_entity]) class InsteonPLMSwitchDevice(SwitchDevice):