Skip to content

Commit

Permalink
fix: change coordinator update to null operation
Browse files Browse the repository at this point in the history
Investigating a potential freeze
  • Loading branch information
alandtse committed Jan 6, 2021
1 parent d508a0c commit dfc53cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,9 +794,8 @@ def state(self):

def update(self):
"""Get the latest details on a media player synchronously."""
return asyncio.run_coroutine_threadsafe(
self.async_update(), self.hass.loop
).result()
return
# return self.hass.add_job(async_update)

@_catch_login_errors
async def async_update(self):
Expand Down

0 comments on commit dfc53cc

Please sign in to comment.