Undo my commit into dev (#6864)

This commit is contained in:
Zack Barett 2020-09-08 13:52:21 -05:00 committed by GitHub
parent 291983e4c3
commit 4d0d1ed2a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 15 deletions

View File

@ -105,12 +105,12 @@ class MoreInfoLight extends LitElement {
? html`
<div class="segmentationContainer">
<ha-color-picker
throttle="500"
class="color"
@colorselected=${this._colorPicked}
.desiredHsColor=${this._colorPickerColor}
throttle="500"
.hueSegments=${this._hueSegments}
.saturationSegments=${this._saturationSegments}
@colorselected=${this._colorPicked}
>
</ha-color-picker>
<ha-icon-button
@ -147,7 +147,7 @@ class MoreInfoLight extends LitElement {
: ""}
<ha-attributes
.stateObj=${this.stateObj}
.extraFilters=${"brightness,color_temp,white_value,effect_list,effect,hs_color,rgb_color,xy_color,min_mireds,max_mireds,entity_id"}
extra-filters="brightness,color_temp,white_value,effect_list,effect,hs_color,rgb_color,xy_color,min_mireds,max_mireds,entity_id"
></ha-attributes>
</div>
`;

View File

@ -85,18 +85,7 @@ export class MoreInfoTabHistoryDialog extends LitElement {
clearInterval(this._historyRefreshInterval);
}
if (!this.hass) {
return;
}
const oldHass = changedProps.get("hass") as HomeAssistant;
const newStateObj = this.hass.states[this.entityId];
const oldStateObj = oldHass?.states[this.entityId];
if (
changedProps.has("entityId") ||
(oldHass && newStateObj !== oldStateObj)
) {
if (changedProps.has("entityId")) {
this._stateHistory = undefined;
this._entries = undefined;