Skip to content

Commit

Permalink
feat: add Sengled Bluetooth bulbs to local Bluetooth check (#2120)
Browse files Browse the repository at this point in the history
Closes #2031
  • Loading branch information
alams154 committed Nov 29, 2023
1 parent 0599e4f commit e1caa36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/alexa_media/alexa_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def is_local(appliance: dict[str, Any]) -> bool:
if "ALEXA_VOICE_ENABLED" in appliance.get("applianceTypes", []):
return not is_skill(appliance)

# Ledvance bulbs connected via bluetooth are hard to detect as locally connected
# Ledvance/Sengled bulbs connected via bluetooth are hard to detect as locally connected
# There is probably a better way, but this works for now.
if appliance.get("manufacturerName") == "Ledvance":
if appliance.get("manufacturerName") == "Ledvance" or appliance.get("manufacturerName") == "Sengled":
return not is_skill(appliance)

# Zigbee devices are guaranteed to be local and have a particular pattern of id
Expand Down

0 comments on commit e1caa36

Please sign in to comment.