mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +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",
|
"input_boolean",
|
||||||
"light",
|
"light",
|
||||||
"switch",
|
"switch",
|
||||||
|
"group",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/** Temperature units. */
|
/** Temperature units. */
|
||||||
|
@ -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}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user