Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions custom_components/yandex_station/core/yandex_station.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,8 +1099,11 @@ async def sync_play_media(self, data: dict):
except Exception as e:
self.debug("Failed to get track url: " + str(e))
return

await self.async_media_seek(0)

if source.get("platform") == "cast":
await super().async_media_seek(0)
else:
await self.async_media_seek(0)
await self.hass.services.async_call("media_player", "play_media", data)

def sync_service_call(self, service: str, **kwargs):
Expand Down