mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Dont attempt to add devices to disabled zwave config (#22461)
This commit is contained in:
parent
413171bb3c
commit
67ac4882f2
@ -34,9 +34,11 @@ export const protocolIntegrationPicked = async (
|
|||||||
if (domain === "zwave_js") {
|
if (domain === "zwave_js") {
|
||||||
const entries = options?.config_entry
|
const entries = options?.config_entry
|
||||||
? undefined
|
? undefined
|
||||||
: await getConfigEntries(hass, {
|
: (
|
||||||
domain,
|
await getConfigEntries(hass, {
|
||||||
});
|
domain,
|
||||||
|
})
|
||||||
|
).filter((e) => !e.disabled_by);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!isComponentLoaded(hass, "zwave_js") ||
|
!isComponentLoaded(hass, "zwave_js") ||
|
||||||
@ -81,9 +83,11 @@ export const protocolIntegrationPicked = async (
|
|||||||
} else if (domain === "zha") {
|
} else if (domain === "zha") {
|
||||||
const entries = options?.config_entry
|
const entries = options?.config_entry
|
||||||
? undefined
|
? undefined
|
||||||
: await getConfigEntries(hass, {
|
: (
|
||||||
domain,
|
await getConfigEntries(hass, {
|
||||||
});
|
domain,
|
||||||
|
})
|
||||||
|
).filter((e) => !e.disabled_by);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!isComponentLoaded(hass, "zha") ||
|
!isComponentLoaded(hass, "zha") ||
|
||||||
@ -129,9 +133,11 @@ export const protocolIntegrationPicked = async (
|
|||||||
} else if (domain === "matter") {
|
} else if (domain === "matter") {
|
||||||
const entries = options?.config_entry
|
const entries = options?.config_entry
|
||||||
? undefined
|
? undefined
|
||||||
: await getConfigEntries(hass, {
|
: (
|
||||||
domain,
|
await getConfigEntries(hass, {
|
||||||
});
|
domain,
|
||||||
|
})
|
||||||
|
).filter((e) => !e.disabled_by);
|
||||||
if (
|
if (
|
||||||
!isComponentLoaded(hass, domain) ||
|
!isComponentLoaded(hass, domain) ||
|
||||||
(!options?.config_entry && !entries?.length)
|
(!options?.config_entry && !entries?.length)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user