Skip to content

Commit

Permalink
Add the state as a classname to <ha-card> for hacking the card with c…
Browse files Browse the repository at this point in the history
…ard-mod
  • Loading branch information
nervetattoo committed Feb 11, 2020
1 parent 8bb3a3d commit 9f0a92c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,9 @@ class SimpleThermostat extends LitElement {
const stepLayout = this.config.step_layout || 'column'
const row = stepLayout === 'row'

const classes = [!this.name && 'no-header', action].filter(cx => !!cx)
return html`
<ha-card class="${this.name ? '' : 'no-header'}">
<ha-card class="${classes.join(' ')}">
${this.renderHeader()}
<section class="body">
<div class="sensors">
Expand Down

0 comments on commit 9f0a92c

Please sign in to comment.