mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 13:57:21 +00:00
Allow falsey values for attribute value in a picture-elements card element. (#8943)
This commit is contained in:
parent
9bc2ab29a1
commit
b398727413
@ -57,7 +57,7 @@ class HuiStateLabelElement extends LitElement implements LovelaceElement {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
this._config.attribute &&
|
this._config.attribute &&
|
||||||
!stateObj.attributes[this._config.attribute]
|
!(this._config.attribute in stateObj.attributes)
|
||||||
) {
|
) {
|
||||||
return html`
|
return html`
|
||||||
<hui-warning-element
|
<hui-warning-element
|
||||||
|
Loading…
x
Reference in New Issue
Block a user