Fixes the rendering of the weather card#2318
Conversation
|
We do not need to remove this variable. We need to correctly pass it to the weather legacy card |
|
@zsarnett Any suggestion on where that is done? Because I would like to ammend this PR if possible. Otherwise it can be closed. |
|
If you look at the weather card in the Lovelace Cards directory it uses legacy wrapper. The legacy wrapper need to correctly pass config or we need to up the legacy weather card to use the config it's given and set this.config correctly. I havent drilled into it yet. But that's the basis |
|
Also this is an issue for the plant card as well. We can fix both as it should be the same issue |
An undefined variable was referenced. This commit added a new config object which is normally just provided and fixes the rendering.
|
I've ammended my commit with the same property as is defined by the plant card. I didn't see your new message unfortunately. So I am unsure if this is the right approach. |
|
Have you tested this approach? |
|
Yes, I've tested this in my local dev environment with a |
|
And can your try setting a name variable |
|
@zsarnett I'm unsure what you mean with:
|
|
|
|
Or is this an issue for states UI? |
|
This is an issue for the states-ui. I'm also unable to open lovelace on my dev environment, because it's triggering home-assistant/core#18193. Edit: Appearently it loaded after some retries. No specific lovelace errors given, but also no name displayed in either weather cards (states and lovelace). |
|
This won't fix it … |
This was reported in #2294 and caused by an undefined variable. This variable is removed with this commit.