kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.47k stars 206 forks source link

Add support `assumed_state` media players #796

Closed Drafteed closed 7 months ago

Drafteed commented 7 months ago

Reopening an accidentally closed #719 due to the re-creation of a fork.

This small PR will add support of assumed_state media_players. Such players have separate play/pause controls and typically do not support control over media_play_pause service call.

Native media player card looks like this, if media player has assumed_state: true (https://github.com/home-assistant/frontend/pull/11642):

image

This change contains the same logic:

image

I'm also attach a list of core integrations where it is used at this moment: