mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 21:06: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>
|
||||
</div>
|
||||
</template>
|
||||
<div class="temp">
|
||||
[[item.temperature]] [[getUnit('temperature')]]
|
||||
</div>
|
||||
<template is="dom-if" if="[[_showValue(item.temperature)]]">
|
||||
<div class="temp">
|
||||
[[item.temperature]] [[getUnit('temperature')]]
|
||||
</div>
|
||||
</template>
|
||||
<template is="dom-if" if="[[_showValue(item.templow)]]">
|
||||
<div class="templow">
|
||||
[[item.templow]] [[getUnit('temperature')]]
|
||||
|
@ -42,6 +42,7 @@ const fixedIcons = {
|
||||
updater: "hass:cloud-upload",
|
||||
vacuum: "hass:robot-vacuum",
|
||||
water_heater: "hass:thermometer",
|
||||
weather: "hass:weather-cloudy",
|
||||
weblink: "hass:open-in-new",
|
||||
};
|
||||
|
||||
|
@ -151,7 +151,10 @@ class OnboardingIntegrations extends LitElement {
|
||||
getConfigEntries(this.hass!),
|
||||
]);
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user