Skip to content

Commit

Permalink
fix: allow devices with notification capability
Browse files Browse the repository at this point in the history
Added capability check for TIMERS_AND_ALARMS and REMINDERS.
Include_devices will also override the capability check.
closes #1085
  • Loading branch information
alandtse committed Jan 5, 2021
1 parent d1e2911 commit 0b88157
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions custom_components/alexa_media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,15 @@ async def async_update_data():
continue

if (
device.get("capabilities")
and "MUSIC_SKILL" not in device["capabilities"]
dev_name not in include_filter
and device.get("capabilities")
and not any(
x in device["capabilities"]
for x in ["MUSIC_SKILL", "TIMERS_AND_ALARMS", "REMINDERS"]
)
):
# skip devices without music skill
# skip devices without music or notification skill
_LOGGER.debug("Excluding %s for lacking capability", dev_name)
continue

if "bluetoothStates" in bluetooth:
Expand Down

0 comments on commit 0b88157

Please sign in to comment.