Fix to precipitation logic

Found a really dumb error I made that broke compatibility with OpenWeatherMap hourly forecast under certain conditions. This is now fixed.
This commit is contained in:
Kevin G 2021-06-02 11:43:56 -04:00 committed by GitHub
parent 32df76bdff
commit af52b91799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
{{ hour.temperature | roundValue | unit("temperature") }} {{ hour.temperature | roundValue | unit("temperature") }}
</td> </td>
{% if config.showPrecipitationAmount %} {% if config.showPrecipitationAmount %}
{% if hour.precipitationUnits %}
<td class="align-right bright precipitation"> <td class="align-right bright precipitation">
{{ hour.precipitation }}{{ hour.precipitationUnits }} {{ hour.precipitation }}{{ hour.precipitationUnits }}
</td> </td>
@ -19,6 +20,7 @@
{{ hour.precipitation | unit("precip") }} {{ hour.precipitation | unit("precip") }}
</td> </td>
{% endif %} {% endif %}
{% endif %}
</tr> </tr>
{% set currentStep = currentStep + 1 %} {% set currentStep = currentStep + 1 %}
{% endfor %} {% endfor %}