Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Oct 31, 2023
1 parent 0e05f9e commit c414df8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/mass/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,13 @@ async def async_on_update(self) -> None:
self._attr_media_position_updated_at = from_utc_timestamp(
queue.elapsed_time_last_updated
)
self._prev_time = queue.elapsed_time
else:
self._attr_media_position = player.elapsed_time
self._attr_media_position_updated_at = from_utc_timestamp(
player.elapsed_time_last_updated
)
self._prev_time = queue.elapsed_time
self._prev_time = player.elapsed_time
self._update_media_image_url(queue)
# update current media item infos
media_artist = None
Expand Down

0 comments on commit c414df8

Please sign in to comment.