Closed peetereczek closed 4 years ago
Please replace the following code (thermostat_card.lib.js)try, and feedback. Remember to clean up your browser cache after changes Thank you for your work.
_updateColor(state, preset_mode) {
if(Object.prototype.toString.call(preset_mode) === "[object String]"){
if(state != 'off' && preset_mode.toLowerCase() == 'idle')
state = 'idle'
this._root.classList.forEach(c => {
if (c.indexOf('dial--state--') != -1)
this._root.classList.remove(c);
});
this._root.classList.add('dial--state--' + state);
}
}
Fix you shared works, thanks!
Still error occurs.