From 0c55603e4824bdc155ebd09e31d25dd0358a1466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Thu, 14 Feb 2019 13:44:52 +0100 Subject: [PATCH] Bugfix --- slider-entity-row.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slider-entity-row.js b/slider-entity-row.js index e85c899..72c1c0f 100644 --- a/slider-entity-row.js +++ b/slider-entity-row.js @@ -161,7 +161,7 @@ class SliderEntityRow extends Polymer.Element { this.step = config.step || 5; if(this._hass && this._config) { - this.stateObj = this._config.entity in hass.states ? hass.states[this._config.entity] : null; + this.stateObj = this._config.entity in this._hass.states ? this._hass.states[this._config.entity] : null; if(this.stateObj) { this.value = this.controller.get(this.stateObj); this.displaySlider = this.controller.supported(this.stateObj);