Filter met during onboarding (#3285)

* Filter met during onboarding

* Hide temp values with no value
This commit is contained in:
Paulus Schoutsen 2019-06-19 11:42:46 -07:00 committed by GitHub
parent 2df829b79d
commit 83889a8fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -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')]]

View File

@ -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",
};

View File

@ -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() {