mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Timestamp unavailable (#3635)
* Convert weather-forecast to LitElement Part of https://github.com/home-assistant/home-assistant-polymer/issues/2095 Not sure how RTL works and how to apply it. Also, thinking I should update if the forecast changes and not just the state. Input? * Revert "Convert weather-forecast to LitElement" This reverts commit e1893b0a83f5973df7a28e5d30c3d4d0496155a1. * Don't try to show unavailable timestamp Closes https://github.com/home-assistant/home-assistant-polymer/issues/2956
This commit is contained in:
parent
011219b727
commit
46968bb565
@ -62,7 +62,8 @@ class HuiSensorEntityRow extends LitElement implements EntityRow {
|
|||||||
return html`
|
return html`
|
||||||
<hui-generic-entity-row .hass="${this.hass}" .config="${this._config}">
|
<hui-generic-entity-row .hass="${this.hass}" .config="${this._config}">
|
||||||
<div>
|
<div>
|
||||||
${stateObj.attributes.device_class === "timestamp"
|
${stateObj.attributes.device_class === "timestamp" &&
|
||||||
|
stateObj.state !== "unavailable"
|
||||||
? html`
|
? html`
|
||||||
<hui-timestamp-display
|
<hui-timestamp-display
|
||||||
.hass="${this.hass}"
|
.hass="${this.hass}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user