Skip to content

Commit

Permalink
simpler update mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnodgrass committed Apr 13, 2020
1 parent 836e509 commit f79fc1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/xantech/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ async def async_turn_on(self):
await self._amp.set_power(self._zone_id, True)

# schedule a poll of the status of the zone ASAP to pickup volume levels/etc
await self.async_update()
self.async_update_ha_state(force_refresh=True)
self.async_schedule_update_ha_state(force_refresh=True)

async def async_turn_off(self):
"""Turn the media player off."""
Expand Down

0 comments on commit f79fc1a

Please sign in to comment.