kalkih / mini-media-player

Minimalistic media card for Home Assistant Lovelace UI
MIT License
1.49k stars 205 forks source link

Fix dumps with `idle_view` #664

Closed spacegaier closed 2 years ago

spacegaier commented 2 years ago

Fixes https://github.com/kalkih/mini-media-player/issues/658

The access to media_position_updated_at failed and resulted in the card from rendering with the idle feature.

YAML setup (did not test without the vertical-stack but that should have no impact here either way).

type: vertical-stack
cards:
  - type: custom:mini-media-player
    entity: media_player.sonos_living_front
    idle_view:
      when_paused: true
kalkih commented 2 years ago

Thanks for the PR, made me realise the source issue _attr should never be undefined in updatedAt. Closing this in favor for #667