kalkih / simple-weather-card

Minimalistic weather card for Home Assistant
MIT License
283 stars 33 forks source link

Weather card is not working with 0.116.0b0 #43

Closed TheZoker closed 3 years ago

TheZoker commented 3 years ago

This is what the card looks like on version 0.115.x: Screenshot_2020 09 30_23h41m19s_030_

And here is what the card looks like on version 0.116.0b0 (just gone): Screenshot_2020 09 30_23h42m27s_031_

The HTML element is just empty: Screenshot_2020 09 30_23h45m30s_032_

Let me know, if you need more info about this issue :)

kalkih commented 3 years ago

Strange, looks like the custom element isn't defined. Is this the only custom card that's not working?

TheZoker commented 3 years ago

Yes mini-media-player, button-card and mini-graph-card are working fine

jimz011 commented 3 years ago

Same here, maybe it has something to do with the lazy loading?

hmmbob commented 3 years ago

With the 0.116.0 release, this bug is now also present in the current release.

@kalkih Are you relying on any of the functionality they mentioned in this developer blog? https://developers.home-assistant.io/blog/2020/10/02/lazymoreinfo/

kalkih commented 3 years ago

Try the new release of the card, should hopefully work, did the trick on my setup 🤞

hmmbob commented 3 years ago

Yes, new version fixed it for me too!

Tx!

For HACS users and if the update doesn't show yet by itself: Navigate to HACS - Frontend - hit the three dots in the "Simple weather card" card - hit reinstall and choose 0.8.1

hmmbob commented 3 years ago

Another issue seems to popup with 0.116: if you click the card, a "generic HA popup" (the 'more info' dialog) shows, but is bound within the size of the card (and thus hardly readable)

kalkih commented 3 years ago

I don't see that behaviour myself, what does your setup look like, do you have it wrapped inside other cards perhaps, stacks e.t.c.?

hmmbob commented 3 years ago

Yeah, I actually do that indeed.

https://github.com/hmmbob/HomeAssistantConfig/blob/48d5650c6406a3e8edcb49b8384aed5700eea19f/lovelace/1-start.yaml#L57-L96

It's in a vertical stack. Did not see the behavior before.

kalkih commented 3 years ago

Is probably nesting it inside either custom:state-switch or vertical-stack that's causing this then, custom:state-switch would be my first guess. I don't think this is anything I can resolve on my end since the more-info dialog isn't really a part of the card.

TheZoker commented 3 years ago

Mine looks like this:

type: vertical-stack
cards:
  - backdrop: true
    entity: weather.openweathermap
    name: ' '
    type: 'custom:simple-weather-card'
...
kalkih commented 3 years ago

And you experience the more-info dialog issue as well?

Another issue seems to popup with 0.116: if you click the card, a "generic HA popup" (the 'more info' dialog) shows, but is bound within the size of the card (and thus hardly readable)

hmmbob commented 3 years ago

Issue with the more info dialog is gone for me, by either removing Custom Header (as it was deprecated) or upgrading to 0.116.2 - I unfortunately do not know which one of the two worked 😄

TheZoker commented 3 years ago

I'll close this, as the issue seems to be resolved in the latest release! Thanks