Skip to content

Commit

Permalink
fix(media_player): set await for async source functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Aug 27, 2019
1 parent 474c30d commit 26d3c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ async def _handle_event(self, event):
if (event.data['bluetooth_change']['deviceSerialNumber'] ==
self.device_serial_number):
self._bluetooth_state = event.data['bluetooth_change']
self._source = self._get_source()
self._source_list = self._get_source_list()
self._source = await self._get_source()
self._source_list = await self._get_source_list()
if (self.hass and self.async_schedule_update_ha_state):
await self.async_schedule_update_ha_state()
elif 'player_state' in event.data:
Expand Down

0 comments on commit 26d3c17

Please sign in to comment.