diff --git a/CHANGELOG.md b/CHANGELOG.md index af9a97af..5e021df9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ _This release is scheduled to be released on 2020-07-01._ - Added prettier for an even cleaner codebase +- Hide Sunrise/Sunset in Weather module + ### Updated - Cleaned up alert module code diff --git a/modules/default/weather/current.njk b/modules/default/weather/current.njk index 33dac07a..d89c5f53 100755 --- a/modules/default/weather/current.njk +++ b/modules/default/weather/current.njk @@ -22,14 +22,16 @@ {% if config.showHumidity and current.humidity %} {{ current.humidity | decimalSymbol }} {% endif %} - - - {% if current.nextSunAction() === "sunset" %} - {{ current.sunset | formatTime }} - {% else %} - {{ current.sunrise | formatTime }} - {% endif %} - + {% if config.showSun %} + + + {% if current.nextSunAction() === "sunset" %} + {{ current.sunset | formatTime }} + {% else %} + {{ current.sunrise | formatTime }} + {% endif %} + + {% endif %} {% endif %}