Allow falsey values for attribute value in a picture-elements card element. (#8943)

This commit is contained in:
Aaron Godfrey 2021-04-19 09:51:55 -07:00 committed by GitHub
parent 9bc2ab29a1
commit b398727413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ class HuiStateLabelElement extends LitElement implements LovelaceElement {
if (
this._config.attribute &&
!stateObj.attributes[this._config.attribute]
!(this._config.attribute in stateObj.attributes)
) {
return html`
<hui-warning-element