mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
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:
parent
2bfd7ff33b
commit
4e86cf01b8
@ -77,6 +77,7 @@ export const DOMAINS_TOGGLE = new Set([
|
||||
"input_boolean",
|
||||
"light",
|
||||
"switch",
|
||||
"group",
|
||||
]);
|
||||
|
||||
/** Temperature units. */
|
||||
|
@ -52,7 +52,7 @@ class HuiGroupEntityRow extends hassLocalizeLitMixin(LitElement)
|
||||
return html`
|
||||
<hui-generic-entity-row .hass="${this.hass}" .config="${this._config}">
|
||||
${
|
||||
this._computeCanToggle(stateObj.attributes.entity_id)
|
||||
this._computeCanToggle(stateObj.entity_id)
|
||||
? html`
|
||||
<ha-entity-toggle
|
||||
.hass="${this.hass}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user