mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add myStrom LED Strip support extending rgblamp bulb_type (#57322)
This commit is contained in:
parent
4653d0b079
commit
d827b2ff56
@ -49,8 +49,10 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||||||
bulb = MyStromBulb(host, mac)
|
bulb = MyStromBulb(host, mac)
|
||||||
try:
|
try:
|
||||||
await bulb.get_state()
|
await bulb.get_state()
|
||||||
if bulb.bulb_type != "rgblamp":
|
if bulb.bulb_type not in ["rgblamp", "strip"]:
|
||||||
_LOGGER.error("Device %s (%s) is not a myStrom bulb", host, mac)
|
_LOGGER.error(
|
||||||
|
"Device %s (%s) is not a myStrom bulb nor myStrom LED Strip", host, mac
|
||||||
|
)
|
||||||
return
|
return
|
||||||
except MyStromConnectionError as err:
|
except MyStromConnectionError as err:
|
||||||
_LOGGER.warning("No route to myStrom bulb: %s", host)
|
_LOGGER.warning("No route to myStrom bulb: %s", host)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user