Skip to content

Commit

Permalink
Merge pull request #2754 from alandtse/dev
Browse files Browse the repository at this point in the history
feat: readd support for Amazon devices (#2746)
  • Loading branch information
alandtse authored Dec 17, 2024
2 parents db4dce0 + bd0d2ca commit a6d2996
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/alexa_media/alexa_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ def is_local(appliance: dict[str, Any]) -> bool:
return not is_skill(appliance)

# Ledvance/Sengled bulbs connected via bluetooth are hard to detect as locally connected
# Amazon devices are not local but bypassing the local check allows for control by the integration
# There is probably a better way, but this works for now.
if (
appliance.get("manufacturerName") == "Ledvance"
or appliance.get("manufacturerName") == "Sengled"
):
manufacturerNames = ["Ledvance", "Sengled", "Amazon"]
if appliance.get("manufacturerName") in manufacturerNames:
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 a6d2996

Please sign in to comment.