mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 03:19:44 +00:00
Update lint tools (#2576)
* Update lint * Prettier Hass.io * Update prettier
This commit is contained in:
@@ -50,20 +50,18 @@ class HuiScriptEntityRow extends hassLocalizeLitMixin(LitElement)
|
||||
return html`
|
||||
${this.renderStyle()}
|
||||
<hui-generic-entity-row .hass="${this.hass}" .config="${this._config}">
|
||||
${
|
||||
stateObj.attributes.can_cancel
|
||||
? html`
|
||||
<ha-entity-toggle
|
||||
.hass="${this.hass}"
|
||||
.stateObj="${stateObj}"
|
||||
></ha-entity-toggle>
|
||||
`
|
||||
: html`
|
||||
<paper-button @click="${this._callService}">
|
||||
${this.localize("ui.card.script.execute")}
|
||||
</paper-button>
|
||||
`
|
||||
}
|
||||
${stateObj.attributes.can_cancel
|
||||
? html`
|
||||
<ha-entity-toggle
|
||||
.hass="${this.hass}"
|
||||
.stateObj="${stateObj}"
|
||||
></ha-entity-toggle>
|
||||
`
|
||||
: html`
|
||||
<paper-button @click="${this._callService}">
|
||||
${this.localize("ui.card.script.execute")}
|
||||
</paper-button>
|
||||
`}
|
||||
</hui-generic-entity-row>
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user