fineemb / lovelace-thermostat-card

Thermostat Lovelace card
Other
112 stars 28 forks source link

Thermostat presence error #5

Closed peetereczek closed 4 years ago

peetereczek commented 4 years ago

I have error:

Uncaught TypeError: Cannot read property 'toLowerCase' of null
    at ThermostatUI._updateColor (thermostat_card.lib.js?v=0.1.1:332)
    at ThermostatUI.updateState (thermostat_card.lib.js?v=0.1.1:188)
    at HTMLElement.set hass [as hass] (main.js:42)
    at HTMLElement.value (hui-view.ts:61)
    at HTMLElement.value (hui-view.ts:337)
    at HTMLElement.t.addEventListener.once (hui-view.ts:68)
    at r (fire_event.ts:76)
    at create-element-base.ts:92

and that's true actually, as my thermostat preset_mode is null, when it's in manual mode

image

fineemb commented 4 years ago

Please update HACS to the latest version (0.21.5) And reinstall lovelace-thermostat-card (v1.2.6)

The problem has been solved.

peetereczek commented 4 years ago

It's not fixed, still Uncaught TypeError: Cannot read property 'toLowerCase' of null at ThermostatUI._updateColor (thermostat_card.lib.js?v=0.1.1:332) at ThermostatUI.updateState (thermostat_card.lib.js?v=0.1.1:188) at HTMLElement.set hass [as hass] (main.js:42) at HTMLElement.value (hui-view.ts:61) at HTMLElement.value (hui-view.ts:337) at HTMLElement. (hui-view.ts:68) at r (fire_event.ts:76) at create-element-base.ts:92