-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
TypeError: Cannot convert undefined or null to object #127
Comments
Hello, I'm not familiar with that particular addon. Could you post the attributes of the media player when you are seeing this issue, thanks. Also, is that the entire error? there's no down arrow you can press to get a longer stack trace? |
Thank you for the quick reply. Exactly, Im using this spotify component configuration.yaml
lovelace.yaml
after changing entity: media_player.spotify to something else the problem disappears error from console: |
@darkkatarsis if you go to the developer states page, you'll find the listed attributes for any of your devices which is what @kalkih is asking be provided |
Thanks, umm, actually not sure, the error in the screenshot you posted has a different stack trace. @iantrich Any idea what this could be?
|
Maybe related home-assistant/frontend#3125 |
if I can add jumping between views, reloading page and editing card reproduce this error |
@kalkih I did some investigation and it's related to the There is also this https://github.com/home-assistant/home-assistant-polymer/blob/dev/hassio/src/hassio-main.ts#L33 interesting comment, which seems like an ugly work-around for the same problem. |
Thanks @nudded, switching to ha-slider seems to indeed prevent these errors. the ha-slider component was introduced sometime in december last year so changing to it would make the card incompatible with HA versions prior to ~ 0.85.0, but we could add a check and define it if it doesn't exist. |
@kalkih Ah very nice, thanks for taking the time to fix it! (although I guess it is also an issue upstream) |
There is a problem when mini-media-player has as source virtual entity like "media_player.spotify" from https://github.com/hassio-addons/addon-spotify-connect, other media_player sources work fine
error from the dev console on chrome:
The text was updated successfully, but these errors were encountered: