mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-26 14:27:20 +00:00
Add mediadescription for channel media type (#13434)
This commit is contained in:
parent
a9d1feb196
commit
43f9c9ebc9
@ -51,6 +51,7 @@ interface MediaPlayerEntityAttributes extends HassEntityAttributeBase {
|
||||
media_duration?: number;
|
||||
media_position?: number;
|
||||
media_title?: string;
|
||||
media_channel?: string;
|
||||
icon?: string;
|
||||
entity_picture_local?: string;
|
||||
is_volume_muted?: boolean;
|
||||
@ -235,6 +236,9 @@ export const computeMediaDescription = (
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "channel":
|
||||
secondaryTitle = stateObj.attributes.media_channel!;
|
||||
break;
|
||||
default:
|
||||
secondaryTitle = stateObj.attributes.app_name || "";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user