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

Fix more info weather card - errant semi colon and zero degrees not displaying #4228

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

MatthewFlamm
Copy link
Contributor

Noted here: https://community.home-assistant.io/t/support-for-environment-canada-platforms/126241/88

In more-info when using daily, there was an errant semi colon in between the low temperature and high temperature. Also, the conditional statements for each display value could evaluate to false when numerically equal to zero. Therefore showing nothing.

With these changes, it looks like this

Screenshot_20191116-061139

As a question, temperature (in current observation and the high temperature) is not checked, but always shown. Is it a problem if the temperature is None? I assume it is okay as is, but will show a blank temperature. I'm not a frontend native developer, so I'm not sure.

@bramkragten
Copy link
Member

The temperature is mandatory and therefore not checked.

@bramkragten bramkragten merged commit 09e7638 into home-assistant:dev Nov 18, 2019
@bramkragten bramkragten mentioned this pull request Nov 18, 2019
@MatthewFlamm MatthewFlamm deleted the fix_moreinfo_weather branch November 18, 2019 12:35
@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants