From bb1125589fe4fc82668237714d04ac3ef6a2eda8 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sun, 8 Mar 2020 11:06:42 +0000 Subject: [PATCH] More ND changes --- src/data.ts | 2 ++ src/panels/installed.ts | 3 +++ src/panels/repository.ts | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/data.ts b/src/data.ts index b8f1bce4..ce1d91b1 100644 --- a/src/data.ts +++ b/src/data.ts @@ -91,6 +91,7 @@ export interface LocationChangedEvent { export interface RepositoryCategories { appdaemon_apps: RepositoryData[]; + netdaemon_apps: RepositoryData[]; integrations: RepositoryData[]; plugins: RepositoryData[]; python_scripts: RepositoryData[]; @@ -101,6 +102,7 @@ export const AllCategories = [ "integrations", "plugins", "appdaemon_apps", + "netdaemon_apps", "python_scripts", "themes" ]; diff --git a/src/panels/installed.ts b/src/panels/installed.ts index 4940a9bc..98cb031e 100644 --- a/src/panels/installed.ts +++ b/src/panels/installed.ts @@ -49,6 +49,7 @@ export class HacsInstalled extends LitElement { integrations: [], plugins: [], appdaemon_apps: [], + netdaemon_apps: [], python_scripts: [], themes: [] }; @@ -61,6 +62,8 @@ export class HacsInstalled extends LitElement { categories.plugins.push(repository); if (repository.category === "appdaemon") categories.appdaemon_apps.push(repository); + if (repository.category === "netdaemon") + categories.netdaemon_apps.push(repository); if (repository.category === "python_script") categories.python_scripts.push(repository); if (repository.category === "theme") categories.themes.push(repository); diff --git a/src/panels/repository.ts b/src/panels/repository.ts index 070cf466..d2baffaf 100644 --- a/src/panels/repository.ts +++ b/src/panels/repository.ts @@ -100,6 +100,8 @@ export class HacsRepository extends LitElement { } else { if (this.repo.category === "appdaemon") { var FE_cat = "appdaemon_apps"; + } else if (this.repo.category === "netdaemon") { + var FE_cat = "netdaemon_apps"; } else { FE_cat = `${this.repo.category}s`; }