Skip to content

Commit

Permalink
Fix bad playback_progress setup data
Browse files Browse the repository at this point in the history
  • Loading branch information
mj23000 committed Jan 20, 2023
1 parent 1113fa1 commit 8ff0118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/bangolufsen/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,10 @@ async def bangolufsen_init(self) -> bool:
"Error deserializing product state. Defaulting to fallback state"
)
self._volume = self._client.get_current_volume(async_req=True).get()
self._playback_progress = self._client.get_playback_state(
playback_state = self._client.get_playback_state(
async_req=True
).get()
self._playback_progress = playback_state.progress

self._last_update = utcnow()

Expand Down

0 comments on commit 8ff0118

Please sign in to comment.