Fix #91. Fix hide full row.

This commit is contained in:
2020-01-18 21:03:52 +01:00
parent f9064d6b56
commit 51d68933cf
4 changed files with 172 additions and 107 deletions

View File

@@ -88,7 +88,10 @@ class SliderEntityRow extends LitElement {
`;
if (this._config.full_row)
return content;
if(this._config.hide_when_off && c.isOff)
return html``;
else
return content;
return html`
<hui-generic-entity-row
@@ -108,6 +111,7 @@ class SliderEntityRow extends LitElement {
.state {
min-width: 45px;
text-align: end;
margin-left: 5px;
}
ha-entity-toggle {
margin-left: 8px;