Skip to content

Commit

Permalink
fix: refresh media players with main update
Browse files Browse the repository at this point in the history
The __init__ updater was not properly refreshing media player info
  • Loading branch information
alandtse committed Sep 29, 2020
1 parent c74824e commit d28213a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/alexa_media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,10 @@ async def async_update_data():

if serial not in existing_serials:
new_alexa_clients.append(dev_name)
elif serial in existing_entities:
elif serial in existing_serials:
await hass.data[DATA_ALEXAMEDIA]["accounts"][email]["entities"][
"media_player"
].get(serial).refresh(device, no_api=True)
].get(serial).refresh(device, skip_api=True)
_LOGGER.debug(
"%s: Existing: %s New: %s;"
" Filtered out by not being in include: %s "
Expand Down

0 comments on commit d28213a

Please sign in to comment.