kalkih/mini-media-player

v1.16.3 causing cards to disappear

conorlap opened this issue ยท 18 comments

v1.16.3 is causing any cards with the mini-media-player attached to disappear.
I went back to v1.16.2 and everything was fine again.

What do you mean by "attached"? Single card use works fine for me, meaning the mini-media-player used as its own card.

Issue has resolved itself after a full restart of the HA docker container. Not sure what the cause was as I cleared cache etc. and it still didn't fix it. Happy the full restart did the trick though!

I am having this issue now as well. Reboot did not solve it.

Can you explain the issue in more detail, what do you mean by any cards with the mini-media-player attached ?

I've got my mini media player cards embedded within custom:stack-in-card and mushroom cards for styling. Can confirm the issue is back again for me.

Screenshot_20220505-230913_Chrome
The screenshot is how it looks on v1.16.2

on v1.16.3 nothing within that stack of cards shows

Thanks for the information.

Unpublished the latest release for now and made it a beta release instead, will have to look into this further and try to re-create the issue in my environment, any potential error logs or any other additional information is very welcome :)

Mine are also "in a stack cards" Either the default vertical stack from Home assistant or the "Custom: stack in a card" from HACS. Either way both worked before this version.
image
image

Thanks for the information.

Unpublished the latest release for now and made it a beta release instead, will have to look into this further and try to re-create the issue in my environment, any potential error logs or any other additional information is very welcome :)

I was using Firefox on the latest version. I can try and see if there was any errors I can find in the morning.

I am no web developer but I went poking around and found this in the debugger. Don't know if this helps.
Uncaught (in promise) TypeError: this._attr is undefined get updatedAt mini-media-player-bundle.js:200 get idleView mini-media-player-bundle.js:200 se mini-media-player-bundle.js:200 set hass mini-media-player-bundle.js:1389 value hui-light-card.ts:35 _$AE app.0c493f99.js:1248 performUpdate app.0c493f99.js:1248 scheduleUpdate app.0c493f99.js:1248 _$EC app.0c493f99.js:1248 4 [mini-media-player-bundle.js:200:12603](https://domain.duckdns.org:8123/hacsfiles/mini-media-player/mini-media-player-bundle.js?hacstag=1485208381163)

There was also a learn more button at the bottom of that error which is here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Unexpected_type . Let me know if there is anything else I can do to assist.

Can someone please provide a concrete (minimal) example with the corresponding YAML configuration of the bug? Currently there is not much to go on.

Just adding the mini-media-player into a HA vertical-stackworks just fine for me.

type: vertical-stack
cards:
  - type: custom:mini-media-player
    entity: media_player.sonos_living_front

Based on the stack trace provided above it looks a bit like the issue here #658. Can you please confirm that you are using the idle feature? As a test, if it works without it, then I think this issue here can be closed as a duplicate.

type: vertical-stack
cards:
  - type: custom:mini-media-player
    entity: media_player.sonos_living_front

Sure.
image
image

It works with the default YAML you provided.

It works with the default YAML you provided.

And when does it start failing? Once you enable the idle view feature?

Based on the stack trace provided above it looks a bit like the issue here #658. Can you please confirm that you are using the idle feature? As a test, if it works without it, then I think this issue here can be closed as a duplicate.

You are correct, this must be the idle view issue as removing it made it show back up.

Same problem here. I tried to find 1.16.2 but no success...

v1.16.2 gets unpublished automatically here on GitHub for some strange reason... I've republished it now.
New release should be out tomorrow.

Thank you for your patience!
New release available, should fix these issues, let me know if it doesn't ๐Ÿ™‚