From f2276e275beb476324de5e1110719e30b50a81ea Mon Sep 17 00:00:00 2001 From: Alex X Date: Mon, 6 Nov 2023 14:28:35 +0300 Subject: [PATCH] Add title and thumb to streaming #358 --- custom_components/yandex_station/media_player.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/yandex_station/media_player.py b/custom_components/yandex_station/media_player.py index 3cf961d..3d34e1e 100644 --- a/custom_components/yandex_station/media_player.py +++ b/custom_components/yandex_station/media_player.py @@ -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)