mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 03:19:44 +00:00
computeStateDomain instead of computeDmoain
This commit is contained in:
@@ -4,7 +4,7 @@ import { html } from '@polymer/polymer/lib/utils/html-tag.js';
|
||||
import { PolymerElement } from '@polymer/polymer/polymer-element.js';
|
||||
|
||||
import { STATES_OFF } from '../../../js/common/const.js';
|
||||
import computeDomain from '../../../js/common/entity/compute_domain';
|
||||
import computeStateDomain from '../../../js/common/entity/compute_state_domain';
|
||||
|
||||
class HaEntityToggle extends PolymerElement {
|
||||
static get template() {
|
||||
@@ -116,7 +116,7 @@ class HaEntityToggle extends PolymerElement {
|
||||
// result in the entity to be turned on. Since the state is not changing,
|
||||
// the resync is not called automatic.
|
||||
callService(turnOn) {
|
||||
const stateDomain = computeDomain(this.stateObj);
|
||||
const stateDomain = computeStateDomain(this.stateObj);
|
||||
let serviceDomain;
|
||||
let service;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user