home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.05k stars 2.77k forks source link

0.81.1 lovelace thermostat card not working with opentherm gateway hub #1915

Closed ghost closed 6 years ago

ghost commented 6 years ago

@reyapo commented on Oct 29, 2018, 3:18 PM UTC:

Home Assistant release with the issue: 0.81.1

Last working Home Assistant release (if known): 0.80.something

Operating environment (Hass.io/Docker/Windows/etc.): arch linux virtualenv

Component/platform: https://www.home-assistant.io/lovelace/thermostat/

Description of problem: The thermostat component does not seem to work with the new opentherm gateway hub It does not render and throws a javascrip error.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant): ui-lovelace.yaml:

- type: thermostat
  entity: climate.kamer_thermostaat

configuration.yaml:

opentherm_gw:
  device: /dev/ttyUSB1
  climate:
    name: kamer_thermostaat
    precision: 0.5
    floor_temperature: true  
  monitored_variables:
    - room_setpoint
    - room_temp
    - otgw_about
    - burner_hours
    - burner_starts
    - ch_water_temp
    - dhw_flow_rate
    - dhw_temp

Traceback (if applicable):

TypeError: stateObj.attributes.operation_list is undefined[Learn More] 8a696fdac4ce3eb749b3.chunk.js:1696 

the affected line:

<div class="modes">
   ${stateObj.attributes.operation_list.map(modeItem=>this._renderIcon(modeItem,mode))}
</div>

Additional information: Problems occurs on multiple platforms, firefox, chromium and android blaze

This issue was moved by fabaff from home-assistant/home-assistant#17954.

zsarnett commented 6 years ago

Fix has already been merged waiting for next hotfix https://github.com/home-assistant/home-assistant-polymer/pull/1901