mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Undo my commit into dev (#6864)
This commit is contained in:
parent
291983e4c3
commit
4d0d1ed2a1
@ -105,12 +105,12 @@ class MoreInfoLight extends LitElement {
|
|||||||
? html`
|
? html`
|
||||||
<div class="segmentationContainer">
|
<div class="segmentationContainer">
|
||||||
<ha-color-picker
|
<ha-color-picker
|
||||||
throttle="500"
|
|
||||||
class="color"
|
class="color"
|
||||||
|
@colorselected=${this._colorPicked}
|
||||||
.desiredHsColor=${this._colorPickerColor}
|
.desiredHsColor=${this._colorPickerColor}
|
||||||
|
throttle="500"
|
||||||
.hueSegments=${this._hueSegments}
|
.hueSegments=${this._hueSegments}
|
||||||
.saturationSegments=${this._saturationSegments}
|
.saturationSegments=${this._saturationSegments}
|
||||||
@colorselected=${this._colorPicked}
|
|
||||||
>
|
>
|
||||||
</ha-color-picker>
|
</ha-color-picker>
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
@ -147,7 +147,7 @@ class MoreInfoLight extends LitElement {
|
|||||||
: ""}
|
: ""}
|
||||||
<ha-attributes
|
<ha-attributes
|
||||||
.stateObj=${this.stateObj}
|
.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>
|
></ha-attributes>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -85,18 +85,7 @@ export class MoreInfoTabHistoryDialog extends LitElement {
|
|||||||
clearInterval(this._historyRefreshInterval);
|
clearInterval(this._historyRefreshInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.hass) {
|
if (changedProps.has("entityId")) {
|
||||||
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)
|
|
||||||
) {
|
|
||||||
this._stateHistory = undefined;
|
this._stateHistory = undefined;
|
||||||
this._entries = undefined;
|
this._entries = undefined;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user