Skip to content

Commit

Permalink
fix: update HA state on bluetooth change
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Aug 31, 2019
1 parent 12e2484 commit fb432af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ async def select_source(self, source):
if devices['friendlyName'] == source:
await self.alexa_api.set_bluetooth(devices['address'])
self._source = source
if not (self.hass.data[DATA_ALEXAMEDIA]
['accounts'][self._login.email]['websocket']):
await self.async_update()

async def _get_source(self):
source = 'Local Speaker'
Expand Down

0 comments on commit fb432af

Please sign in to comment.