mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-28 07:17:21 +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_duration?: number;
|
||||||
media_position?: number;
|
media_position?: number;
|
||||||
media_title?: string;
|
media_title?: string;
|
||||||
|
media_channel?: string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
entity_picture_local?: string;
|
entity_picture_local?: string;
|
||||||
is_volume_muted?: boolean;
|
is_volume_muted?: boolean;
|
||||||
@ -235,6 +236,9 @@ export const computeMediaDescription = (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "channel":
|
||||||
|
secondaryTitle = stateObj.attributes.media_channel!;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
secondaryTitle = stateObj.attributes.app_name || "";
|
secondaryTitle = stateObj.attributes.app_name || "";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user