mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Added app name display to Chromecast component.
This commit is contained in:
parent
9cfefb64dd
commit
90392ec303
@ -153,7 +153,8 @@ class CastDevice(MediaPlayerDevice):
|
|||||||
@property
|
@property
|
||||||
def media_title(self):
|
def media_title(self):
|
||||||
""" Title of current playing media. """
|
""" Title of current playing media. """
|
||||||
return self.media_status.title if self.media_status else None
|
title = self.media_status.title if self.media_status else None
|
||||||
|
return title if title else self.cast.app_display_name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def media_artist(self):
|
def media_artist(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user