Add group to domains that can be toggled (#2555)

* Add group to domains that can be toggled

* Group should call homeassistant.turn_on/turn_off

* entity id is not a attribute

* Oops...
This commit is contained in:
Bram Kragten 2019-01-25 16:39:33 +01:00 committed by Paulus Schoutsen
parent 2bfd7ff33b
commit 4e86cf01b8
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ export const DOMAINS_TOGGLE = new Set([
"input_boolean", "input_boolean",
"light", "light",
"switch", "switch",
"group",
]); ]);
/** Temperature units. */ /** Temperature units. */

View File

@ -52,7 +52,7 @@ class HuiGroupEntityRow extends hassLocalizeLitMixin(LitElement)
return html` return html`
<hui-generic-entity-row .hass="${this.hass}" .config="${this._config}"> <hui-generic-entity-row .hass="${this.hass}" .config="${this._config}">
${ ${
this._computeCanToggle(stateObj.attributes.entity_id) this._computeCanToggle(stateObj.entity_id)
? html` ? html`
<ha-entity-toggle <ha-entity-toggle
.hass="${this.hass}" .hass="${this.hass}"