Skip to content

Commit

Permalink
fix: cleanup remaining sync references
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Aug 31, 2019
1 parent 46b9d88 commit 6f71f50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions custom_components/alexa_media/media_player.py
Expand Up @@ -218,12 +218,12 @@ async def _handle_event(self, event):
self.name,
player_state['volumeSetting'])
self._media_vol_level = player_state['volumeSetting']/100
if (self.hass and self.schedule_update_ha_state):
if (self.hass and self.async_schedule_update_ha_state):
self.async_schedule_update_ha_state()
elif 'dopplerConnectionState' in player_state:
self._available = (player_state['dopplerConnectionState']
== "ONLINE")
if (self.hass and self.schedule_update_ha_state):
if (self.hass and self.async_schedule_update_ha_state):
self.async_schedule_update_ha_state()
if 'queue_state' in event.data:
queue_state = event.data['queue_state']
Expand Down Expand Up @@ -375,7 +375,7 @@ def source_list(self):
"""List of available input sources."""
return self._source_list

async def select_source(self, source):
async def async_select_source(self, source):
"""Select input source."""
if source == 'Local Speaker':
await self.alexa_api.disconnect_bluetooth()
Expand Down Expand Up @@ -573,7 +573,7 @@ def dnd_state(self, state):
"""Set the Do Not Disturb state."""
self._dnd = state

async def set_shuffle(self, shuffle):
async def async_set_shuffle(self, shuffle):
"""Enable/disable shuffle mode."""
await self.alexa_api.shuffle(shuffle)
self.shuffle_state = shuffle
Expand Down Expand Up @@ -603,7 +603,7 @@ def supported_features(self):
"""Flag media player features that are supported."""
return SUPPORT_ALEXA

async def set_volume_level(self, volume):
async def async_set_volume_level(self, volume):
"""Set volume level, range 0..1."""
if not self.available:
return
Expand All @@ -625,7 +625,7 @@ def is_volume_muted(self):
return True
return False

async def mute_volume(self, mute):
async def async_mute_volume(self, mute):
"""Mute the volume.
Since we can't actually mute, we'll:
Expand Down

0 comments on commit 6f71f50

Please sign in to comment.