Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using idle view #658

Closed
rappenze opened this issue May 5, 2022 · 4 comments · Fixed by #667
Closed

Error when using idle view #658

rappenze opened this issue May 5, 2022 · 4 comments · Fixed by #667
Labels
bug Something isn't working

Comments

@rappenze
Copy link

rappenze commented May 5, 2022

After update of the mini-media-player to version 1.16.3 the option idle_view: when_standby does not work anymore.
When using the card without that option it is displyed correctly.

This issue occurs with HA version 2022.5.0.

With this option the following error is shown:

mini-media-player-bundle.js?hacstag=1485208381163:200 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'media_position_updated_at')
    at se.get updatedAt [as updatedAt] (mini-media-player-bundle.js?hacstag=1485208381163:200:12621)
    at se.get idleView [as idleView] (mini-media-player-bundle.js?hacstag=1485208381163:200:14440)
    at new se (mini-media-player-bundle.js?hacstag=1485208381163:200:11856)
    at Me.set hass [as hass] (mini-media-player-bundle.js?hacstag=1485208381163:1389:377)
    at vertical-stack-in-card.js?hacstag=142051833042:118:19
    at Array.forEach (<anonymous>)
    at VerticalStackInCard.set hass [as hass] (vertical-stack-in-card.js?hacstag=142051833042:117:22)
    at c.value (hui-light-card.ts:35:1)
    at c._$AE (styles.ts:368:1)
    at c.performUpdate (styles.ts:368:1)

image

@kalkih kalkih added the bug Something isn't working label May 5, 2022
@kalkih
Copy link
Owner

kalkih commented May 5, 2022

Thanks for letting me know, will take a look tomorrow, probably a mistake when converting the code to typescript.

@kalkih
Copy link
Owner

kalkih commented May 5, 2022

After taking a closer look at your config, I noticed that it's invalid.

idle view should look like this:

...
idle_view:
  when_standby: true

@rappenze
Copy link
Author

rappenze commented May 6, 2022

Thanks for the info.
But the same error occurs as well with the fixed config.

@kalkih
Copy link
Owner

kalkih commented May 11, 2022

Fixed with the latest release 🤞🏼

@kalkih kalkih closed this as completed May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants