Skip to content

Fix for thermostats without current temperature#1979

Merged
balloob merged 4 commits intohome-assistant:devfrom
schmic:fix-thermostat-card
Nov 6, 2018
Merged

Fix for thermostats without current temperature#1979
balloob merged 4 commits intohome-assistant:devfrom
schmic:fix-thermostat-card

Conversation

@schmic
Copy link
Copy Markdown
Contributor

@schmic schmic commented Nov 4, 2018

No description provided.

@ghost ghost added the in progress label Nov 4, 2018
@schmic
Copy link
Copy Markdown
Contributor Author

schmic commented Nov 4, 2018

Thermostats like the Z-Wave based Danfoss 014G0013 don't have current_temperature, operation_mode and operation_list ...

${
stateObj.attributes.current_temperature
? html`
<span class="current-temperature-text">
Copy link
Copy Markdown
Contributor

@zsarnett zsarnett Nov 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take out the surrounding Span of current-temperature-text and only have

${stateObj.attributes.current_temperature}
<span class="uom">
   ${this.hass.config.unit_system.temperature}
</span>

This be the rendered or not rendered part. and then in the else just html``

@ghost ghost assigned balloob Nov 6, 2018
@balloob balloob merged commit 5891a6e into home-assistant:dev Nov 6, 2018
@ghost ghost removed the in progress label Nov 6, 2018
@schmic schmic deleted the fix-thermostat-card branch November 18, 2018 06:30
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants