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 forecast display problem in Firefox #12073
Conversation
PRs can only be merged to |
It seems like you have some commits in this branch that are not yours, please clean it up. |
ab3b921
to
f3c6170
Compare
}) | ||
if (len(data) - 1) % MIN_OFFSET_BETWEEN_FORECAST_CONDITIONS == 0: | ||
data[len(data) - 1][ATTR_FORECAST_CONDITION] = \ | ||
[k for k, v in CONDITION_CLASSES.items() if entry.get_weather_code() in v][0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (96 > 79 characters)
ATTR_FORECAST_TEMP: entry.get_temperature('celsius').get('temp') | ||
}) | ||
if (len(data) - 1) % MIN_OFFSET_BETWEEN_FORECAST_CONDITIONS == 0: | ||
data[len(data) - 1][ATTR_FORECAST_CONDITION] = \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation is not a multiple of four
for entry in self.forecast_data.get_weathers(): | ||
data.append({ | ||
ATTR_FORECAST_TIME: entry.get_reference_time('iso'), | ||
ATTR_FORECAST_TEMP: entry.get_temperature('celsius').get('temp') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (80 > 79 characters)
f3c6170
to
2ea3baf
Compare
Recreated PR branch on dev. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🐦
Description:
In Firefox the forecast chart is empty because of a not working timestamp format.
Related issue (if applicable): fixes #12055
Example entry for
configuration.yaml
(if applicable):Checklist:
If the code does not interact with devices:
tox
run successfully. Your PR cannot be merged unless tests pass