Don't include all homekit discovery items for integrations that suppo… (#13960)

This commit is contained in:
Bram Kragten 2022-10-03 11:43:17 +02:00 committed by GitHub
parent ad3dcb355f
commit 93893d0237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -510,10 +510,6 @@ class AddIntegrationDialog extends LitElement {
const integrations = const integrations =
this._integrations![integration.domain].integrations!; this._integrations![integration.domain].integrations!;
let domains = Object.keys(integrations); let domains = Object.keys(integrations);
if (integration.iot_standards?.includes("homekit")) {
// if homekit is supported, also fetch the discovered homekit devices
domains.push("homekit_controller");
}
if (integration.domain === "apple") { if (integration.domain === "apple") {
// we show discoverd homekit devices in their own brand section, dont show them at apple // we show discoverd homekit devices in their own brand section, dont show them at apple
domains = domains.filter((domain) => domain !== "homekit_controller"); domains = domains.filter((domain) => domain !== "homekit_controller");