mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +00:00
Move notification services to main list (#19235)
This commit is contained in:
parent
2933d642ed
commit
e721481757
@ -90,6 +90,8 @@ const ENTITY_DOMAINS_OTHER = new Set([
|
|||||||
"image_processing",
|
"image_processing",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const ENTITY_DOMAINS_MAIN = new Set(["notify"]);
|
||||||
|
|
||||||
@customElement("add-automation-element-dialog")
|
@customElement("add-automation-element-dialog")
|
||||||
class DialogAddAutomationElement extends LitElement implements HassDialog {
|
class DialogAddAutomationElement extends LitElement implements HassDialog {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
@ -302,11 +304,13 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
|
|||||||
const domainUsed = !domains ? true : domains.has(domain);
|
const domainUsed = !domains ? true : domains.has(domain);
|
||||||
if (
|
if (
|
||||||
(type === undefined &&
|
(type === undefined &&
|
||||||
manifest?.integration_type === "entity" &&
|
(ENTITY_DOMAINS_MAIN.has(domain) ||
|
||||||
domainUsed &&
|
(manifest?.integration_type === "entity" &&
|
||||||
!ENTITY_DOMAINS_OTHER.has(domain)) ||
|
domainUsed &&
|
||||||
|
!ENTITY_DOMAINS_OTHER.has(domain)))) ||
|
||||||
(type === "helper" && manifest?.integration_type === "helper") ||
|
(type === "helper" && manifest?.integration_type === "helper") ||
|
||||||
(type === "other" &&
|
(type === "other" &&
|
||||||
|
!ENTITY_DOMAINS_MAIN.has(domain) &&
|
||||||
(ENTITY_DOMAINS_OTHER.has(domain) ||
|
(ENTITY_DOMAINS_OTHER.has(domain) ||
|
||||||
(!domainUsed && manifest?.integration_type === "entity") ||
|
(!domainUsed && manifest?.integration_type === "entity") ||
|
||||||
!["helper", "entity"].includes(manifest?.integration_type || "")))
|
!["helper", "entity"].includes(manifest?.integration_type || "")))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user