mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 13:26:34 +00:00
Filter met during onboarding (#3285)
* Filter met during onboarding * Hide temp values with no value
This commit is contained in:
parent
2df829b79d
commit
83889a8fd7
@ -216,9 +216,11 @@ class HaWeatherCard extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
|||||||
></ha-icon>
|
></ha-icon>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="temp">
|
<template is="dom-if" if="[[_showValue(item.temperature)]]">
|
||||||
[[item.temperature]] [[getUnit('temperature')]]
|
<div class="temp">
|
||||||
</div>
|
[[item.temperature]] [[getUnit('temperature')]]
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template is="dom-if" if="[[_showValue(item.templow)]]">
|
<template is="dom-if" if="[[_showValue(item.templow)]]">
|
||||||
<div class="templow">
|
<div class="templow">
|
||||||
[[item.templow]] [[getUnit('temperature')]]
|
[[item.templow]] [[getUnit('temperature')]]
|
||||||
|
@ -42,6 +42,7 @@ const fixedIcons = {
|
|||||||
updater: "hass:cloud-upload",
|
updater: "hass:cloud-upload",
|
||||||
vacuum: "hass:robot-vacuum",
|
vacuum: "hass:robot-vacuum",
|
||||||
water_heater: "hass:thermometer",
|
water_heater: "hass:thermometer",
|
||||||
|
weather: "hass:weather-cloudy",
|
||||||
weblink: "hass:open-in-new",
|
weblink: "hass:open-in-new",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -151,7 +151,10 @@ class OnboardingIntegrations extends LitElement {
|
|||||||
getConfigEntries(this.hass!),
|
getConfigEntries(this.hass!),
|
||||||
]);
|
]);
|
||||||
this._discovered = discovered;
|
this._discovered = discovered;
|
||||||
this._entries = entries;
|
// We filter out the config entry for the local weather.
|
||||||
|
// It is one that we create automatically and it will confuse the user
|
||||||
|
// if it starts showing up during onboarding.
|
||||||
|
this._entries = entries.filter((entry) => entry.domain !== "met");
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _finish() {
|
private async _finish() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user