File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5959 {% endif %}
6060 </span >
6161 {% endif %}
62- <span class =" light wi weathericon wi-{{ current.weatherType }}" ></span >
62+ {% if config .weatherType %}
63+ <span class =" light wi weathericon wi-{{ current.weatherType }}" ></span >
64+ {% endif %}
6365 <span class =" light bright" >{{ current .temperature | roundValue | unit (" temperature" ) | decimalSymbol }} </span >
6466 {% if config .showHumidity == = " temp" %}
6567 <span class =" medium bright" >{{ humidity () }} </span >
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ Module.register("weather", {
168168 this . scheduleUpdate ( ) ;
169169
170170 if ( this . weatherProvider . currentWeather ( ) ) {
171- this . sendNotification ( "CURRENTWEATHER_TYPE" , { type : this . weatherProvider . currentWeather ( ) . weatherType . replace ( "-" , "_" ) } ) ;
171+ this . sendNotification ( "CURRENTWEATHER_TYPE" , { type : this . weatherProvider . currentWeather ( ) . weatherType ? .replace ( "-" , "_" ) } ) ;
172172 }
173173
174174 const notificationPayload = {
You can’t perform that action at this time.
0 commit comments