Skip to content

Commit

Permalink
Add title and thumb to streaming #358
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Nov 6, 2023
1 parent 7e0219d commit f2276e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/yandex_station/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,10 @@ async def sync_play_media(self, player_state: dict):
),
"media_content_type": source.get("media_content_type", "music"),
"entity_id": source["entity_id"],
"extra": {
"title": f"{self._attr_media_artist} - {self._attr_media_title}",
"thumb": self._attr_media_image_url,
},
}

await self.hass.services.async_call("media_player", "play_media", data)
Expand Down

0 comments on commit f2276e2

Please sign in to comment.