computeStateDomain instead of computeDmoain

This commit is contained in:
Paulus Schoutsen
2018-05-16 09:20:21 -04:00
parent 7b3b717f43
commit 3fa9896543
16 changed files with 39 additions and 40 deletions

View File

@@ -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;