From bd0d2cac77f8be452685196fa2500811490d1d80 Mon Sep 17 00:00:00 2001 From: alams154 <31905246+alams154@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:30:09 -0600 Subject: [PATCH] feat: readd support for Amazon devices (#2746) --- custom_components/alexa_media/alexa_entity.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/custom_components/alexa_media/alexa_entity.py b/custom_components/alexa_media/alexa_entity.py index 0336cdbc..41778457 100644 --- a/custom_components/alexa_media/alexa_entity.py +++ b/custom_components/alexa_media/alexa_entity.py @@ -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