From d827b2ff56bd17a7ea955c9262041c87adc23116 Mon Sep 17 00:00:00 2001 From: Andreas Sansano <41288623+asansano@users.noreply.github.com> Date: Wed, 27 Oct 2021 10:11:26 +0200 Subject: [PATCH] Add myStrom LED Strip support extending rgblamp bulb_type (#57322) --- homeassistant/components/mystrom/light.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/mystrom/light.py b/homeassistant/components/mystrom/light.py index 145bdadcc2a..55a81e0ffec 100644 --- a/homeassistant/components/mystrom/light.py +++ b/homeassistant/components/mystrom/light.py @@ -49,8 +49,10 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= bulb = MyStromBulb(host, mac) try: await bulb.get_state() - if bulb.bulb_type != "rgblamp": - _LOGGER.error("Device %s (%s) is not a myStrom bulb", host, mac) + if bulb.bulb_type not in ["rgblamp", "strip"]: + _LOGGER.error( + "Device %s (%s) is not a myStrom bulb nor myStrom LED Strip", host, mac + ) return except MyStromConnectionError as err: _LOGGER.warning("No route to myStrom bulb: %s", host)