Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/onboarding/onboarding-integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import { HomeAssistant } from "../types";
import "./action-badge";
import "./integration-badge";

const HIDDEN_DOMAINS = new Set(["met", "rpi_power"]);

@customElement("onboarding-integrations")
class OnboardingIntegrations extends LitElement {
@property({ attribute: false }) public hass!: HomeAssistant;
Expand Down Expand Up @@ -161,10 +163,12 @@ class OnboardingIntegrations extends LitElement {

private async _loadConfigEntries() {
const entries = await getConfigEntries(this.hass!);
// We filter out the config entry for the local weather.
// We filter out the config entry for the local weather and rpi_power.
// 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");
this._entries = entries.filter(
(entry) => !HIDDEN_DOMAINS.has(entry.domain)
);
}

private async _finish() {
Expand Down