Skip to content

Commit

Permalink
fix(bluetooth): add await for set_bluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Aug 31, 2019
1 parent e102848 commit e622497
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -376,7 +376,7 @@ async def select_source(self, source):
elif self._bluetooth_state['pairedDeviceList'] is not None:
for devices in self._bluetooth_state['pairedDeviceList']:
if devices['friendlyName'] == source:
self.alexa_api.set_bluetooth(devices['address'])
await self.alexa_api.set_bluetooth(devices['address'])
self._source = source

async def _get_source(self):
Expand Down

0 comments on commit e622497

Please sign in to comment.