Skip to content

Commit

Permalink
Merge pull request #499 from kylegordon/alexa_media_4.8.0
Browse files Browse the repository at this point in the history
Alexa Media Player v4.8.0
  • Loading branch information
kylegordon authored Dec 10, 2023
2 parents 5d94bf9 + ad7f67f commit 1fdad03
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions custom_components/alexa_media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ async def process_notifications(login_obj, raw_notifications=None):
n_dev_id = notification.get("deviceSerialNumber")
if n_dev_id is None:
# skip notifications untied to a device for now
# https://github.com/custom-components/alexa_media_player/issues/633#issuecomment-610705651
# https://github.com/alandtse/alexa_media_player/issues/633#issuecomment-610705651
continue
n_type = notification.get("type")
if n_type is None:
Expand Down Expand Up @@ -1038,11 +1038,11 @@ async def http2_handler(message_obj):
)
elif command in [
"PUSH_DELETE_DOPPLER_ACTIVITIES", # delete Alexa history
"PUSH_LIST_CHANGE", # clear a shopping list https://github.com/custom-components/alexa_media_player/issues/1190
"PUSH_LIST_CHANGE", # clear a shopping list https://github.com/alandtse/alexa_media_player/issues/1190
"PUSH_LIST_ITEM_CHANGE", # update shopping list
"PUSH_CONTENT_FOCUS_CHANGE", # likely prime related refocus
"PUSH_DEVICE_SETUP_STATE_CHANGE", # likely device changes mid setup
"PUSH_MEDIA_PREFERENCE_CHANGE", # disliking or liking songs, https://github.com/custom-components/alexa_media_player/issues/1599
"PUSH_MEDIA_PREFERENCE_CHANGE", # disliking or liking songs, https://github.com/alandtse/alexa_media_player/issues/1599
]:
pass
else:
Expand Down
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
4 changes: 2 additions & 2 deletions custom_components/alexa_media/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
PERCENTAGE,
)

__version__ = "4.6.5"
PROJECT_URL = "https://github.com/custom-components/alexa_media_player/"
__version__ = "4.8.0"
PROJECT_URL = "https://github.com/alandtse/alexa_media_player/"
ISSUE_URL = f"{PROJECT_URL}issues"
NOTIFY_URL = f"{PROJECT_URL}wiki/Configuration%3A-Notification-Component#use-the-notifyalexa_media-service"

Expand Down
8 changes: 4 additions & 4 deletions custom_components/alexa_media/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"codeowners": ["@alandtse", "@keatontaylor"],
"config_flow": true,
"dependencies": ["persistent_notification", "http"],
"documentation": "https://github.com/custom-components/alexa_media_player/wiki",
"documentation": "https://github.com/alandtse/alexa_media_player/wiki",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/custom-components/alexa_media_player/issues",
"issue_tracker": "https://github.com/alandtse/alexa_media_player/issues",
"loggers": ["alexapy", "authcaptureproxy"],
"requirements": ["alexapy==1.27.4", "packaging>=20.3", "wrapt>=1.12.1"],
"version": "4.6.5"
"requirements": ["alexapy==1.27.10", "packaging>=20.3", "wrapt>=1.14.0"],
"version": "4.8.0"
}
2 changes: 1 addition & 1 deletion custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ async def async_play_media(self, media_type, media_id, enqueue=None, **kwargs):
_LOGGER.warning(
"To send TTS, set public url in integration configuration"
" Please see the alexa_media wiki for details."
"https://github.com/custom-components/alexa_media_player/wiki/Configuration%3A-Notification-Component#use-the-notifyalexa_media-service"
"https://github.com/alandtse/alexa_media_player/wiki/Configuration%3A-Notification-Component#use-the-notifyalexa_media-service"
)
elif media_type == "sequence":
_LOGGER.debug(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/alexa_media/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def _update_recurring_alarm(self, value):
r_rule_data = next_item.get("rRuleData")
if (
r_rule_data
): # the new recurrence pattern; https://github.com/custom-components/alexa_media_player/issues/1608
): # the new recurrence pattern; https://github.com/alandtse/alexa_media_player/issues/1608
next_trigger_times = r_rule_data.get("nextTriggerTimes")
weekdays = r_rule_data.get("byWeekDays")
if next_trigger_times:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/alexa_media/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"name": "E-Mail Adresse"
}
},
"name": "Aktualisiere letzten aufgerufenen Sensor"
"name": "Aktualisiere den zuletzt aufgerufenen Sensor"
}
}
}
2 changes: 1 addition & 1 deletion custom_components/alexa_media/translations/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"securitycode": "Código 2FA (recomendado para evitar problemas de login)",
"url": "Domínio regional da amazon (ex: amazon.co.uk)"
},
"description": "Por favor insira sua [informação](https://github.com/custom-components/alexa_media_player/wiki/Configuration#integrations-page). **[Cookie import](https://github.com/custom-components/alexa_media_player/wiki/Configuration#cookie-import) pode ser mais fácil!** \n**AVISO! A amazon reporta incorretamente 'Insira um email ou número de telefone válido' quando [Código de 2FA é requirido](https://github.com/custom-components/alexa_media_player/wiki/Configuration#enable-two-factor-authentication-for-your-amazon-account).** \n>{message}",
"description": "Por favor insira sua [informação](https://github.com/alandtse/alexa_media_player/wiki/Configuration#integrations-page). **[Cookie import](https://github.com/alandtse/alexa_media_player/wiki/Configuration#cookie-import) pode ser mais fácil!** \n**AVISO! A amazon reporta incorretamente 'Insira um email ou número de telefone válido' quando [Código de 2FA é requirido](https://github.com/alandtse/alexa_media_player/wiki/Configuration#enable-two-factor-authentication-for-your-amazon-account).** \n>{message}",
"title": "Alexa Media Player - Configurações legado"
}
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/alexa_media/translations/pt_PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"securitycode": "Código 2FA (recomendado para evitar problemas de login)",
"url": "Região do domínio Amazon (ex. amazon.com.br)"
},
"description": "Por favor, introduza a sua [informação](https://github.com/custom-components/alexa_media_player/wiki/Configuration#integrations-page). **[Cookie import](https://github.com/custom-components/alexa_media_player/wiki/Configuration#cookie-import) pode ser mais fácil!** \n**Aviso: a Amazon informa incorretamente 'Insira um e-mail ou número de celular válido' quando [2FA Code é necessário](https://github.com/custom-components/alexa_media_player/wiki/Configuration#enable-two-factor-authentication-for-your-amazon-account).** \n>{message}",
"description": "Por favor, introduza a sua [informação](https://github.com/alandtse/alexa_media_player/wiki/Configuration#integrations-page). **[Cookie import](https://github.com/alandtse/alexa_media_player/wiki/Configuration#cookie-import) pode ser mais fácil!** \n**Aviso: a Amazon informa incorretamente 'Insira um e-mail ou número de celular válido' quando [2FA Code é necessário](https://github.com/alandtse/alexa_media_player/wiki/Configuration#enable-two-factor-authentication-for-your-amazon-account).** \n>{message}",
"title": "Alexa Media Player - Configuração de Compatibilidade"
}
}
Expand Down

0 comments on commit 1fdad03

Please sign in to comment.