@@ -151,10 +151,10 @@ class WeatherCard extends LitElement {
151
151
< div class ="current ${ this . numberElements > 1 ? "spacer" : "" } ">
152
152
< span
153
153
class ="icon bigger "
154
- style ="background: none, url(${ this . getWeatherIcon (
154
+ style ="background: none, url(' ${ this . getWeatherIcon (
155
155
stateObj . state . toLowerCase ( ) ,
156
156
this . hass . states [ "sun.sun" ] . state
157
- ) } ) no-repeat; background-size: contain; "
157
+ ) } ' ) no-repeat; background-size: contain; "
158
158
> ${ stateObj . state }
159
159
</ span >
160
160
${ this . _config . name
@@ -251,9 +251,9 @@ class WeatherCard extends LitElement {
251
251
</ div >
252
252
< i
253
253
class ="icon "
254
- style ="background: none, url(${ this . getWeatherIcon (
254
+ style ="background: none, url(' ${ this . getWeatherIcon (
255
255
daily . condition . toLowerCase ( )
256
- ) } ) no-repeat; background-size: contain; "
256
+ ) } ' ) no-repeat; background-size: contain; "
257
257
> </ i >
258
258
< div class ="highTemp ">
259
259
${ daily . temperature } ${ this . getUnit ( "temperature" ) }
@@ -265,11 +265,11 @@ class WeatherCard extends LitElement {
265
265
</ div >
266
266
`
267
267
: "" }
268
- ${ daily . precipitation !== undefined &&
268
+ ${ ! this . _config . hide_precipitation &&
269
+ daily . precipitation !== undefined &&
269
270
daily . precipitation !== null
270
271
? html `
271
272
< div class ="precipitation ">
272
- < ha-icon icon ="mdi:weather-rainy "> </ ha-icon >
273
273
${ daily . precipitation } ${ this . getUnit ( "precipitation" ) }
274
274
</ div >
275
275
`
@@ -447,10 +447,6 @@ class WeatherCard extends LitElement {
447
447
font-weight : 300 ;
448
448
}
449
449
450
- .precipitation ha-icon {
451
- height : 18px ;
452
- }
453
-
454
450
.icon .bigger {
455
451
width : 10em ;
456
452
height : 10em ;
0 commit comments