From d59d4f3f881b5011a1a54aba7e5260b93a195868 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 2 Aug 2019 14:53:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8Migrate=20to=20Climate=201.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/climate-controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/climate-controller.js b/src/climate-controller.js index 4179236..cf97c3f 100644 --- a/src/climate-controller.js +++ b/src/climate-controller.js @@ -14,13 +14,13 @@ export class ClimateController extends Controller { } get string() { - if (this.stateObj.attributes.operation_mode === "off") + if (this.stateObj.attributes.hvac_mode === "off") return this._hass.localize("state.climate.off"); return `${this.value} ${this._hass.config.unit_system.temperature}`; } get isOff() { - return this.stateObj.attributes.operation_mode === "off"; + return this.stateObj.attributes.hvac_mode === "off"; } get _min() {