From 94dfb66824b05d6092bc6240d5c1721da106a27f Mon Sep 17 00:00:00 2001 From: Greg Badros Date: Fri, 18 Sep 2020 19:48:19 -0700 Subject: [PATCH] Make tplink SmartStrip communication more robust (#40281) --- homeassistant/components/tplink/common.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/tplink/common.py b/homeassistant/components/tplink/common.py index 7ecced32341..6c9d1f8b2e8 100644 --- a/homeassistant/components/tplink/common.py +++ b/homeassistant/components/tplink/common.py @@ -119,7 +119,14 @@ def get_static_devices(config_data) -> SmartDevices: elif type_ == CONF_SWITCH: switches.append(SmartPlug(host)) elif type_ == CONF_STRIP: - for plug in SmartStrip(host).plugs.values(): + try: + ss_host = SmartStrip(host) + except SmartDeviceException as sde: + _LOGGER.error( + "Failed to setup SmartStrip at %s: %s; not retrying", host, sde + ) + continue + for plug in ss_host.plugs.values(): switches.append(plug) # Dimmers need to be defined as smart plugs to work correctly. elif type_ == CONF_DIMMER: