Prevent unwanted line breaks in picture-glance tooltips (#8819)

This commit is contained in:
Philip Allgaier 2021-04-06 14:19:24 +02:00 committed by GitHub
parent 7aae55cde7
commit cc275f9877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,13 +255,11 @@ class HuiPictureGlanceCard extends LitElement implements LovelaceCard {
"state-on": !STATES_OFF.has(stateObj.state), "state-on": !STATES_OFF.has(stateObj.state),
})} })}
.icon=${entityConf.icon || stateIcon(stateObj)} .icon=${entityConf.icon || stateIcon(stateObj)}
title=${` title=${`${computeStateName(stateObj)} : ${computeStateDisplay(
${computeStateName(stateObj)} : ${computeStateDisplay(
this.hass!.localize, this.hass!.localize,
stateObj, stateObj,
this.hass!.locale this.hass!.locale
)} )}`}
`}
></ha-icon-button> ></ha-icon-button>
${this._config!.show_state !== true && entityConf.show_state !== true ${this._config!.show_state !== true && entityConf.show_state !== true
? html`<div class="state"></div>` ? html`<div class="state"></div>`