Skip to content

Commit

Permalink
More ND changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Mar 8, 2020
1 parent a43e406 commit bb11255
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export interface LocationChangedEvent {

export interface RepositoryCategories {
appdaemon_apps: RepositoryData[];
netdaemon_apps: RepositoryData[];
integrations: RepositoryData[];
plugins: RepositoryData[];
python_scripts: RepositoryData[];
Expand All @@ -101,6 +102,7 @@ export const AllCategories = [
"integrations",
"plugins",
"appdaemon_apps",
"netdaemon_apps",
"python_scripts",
"themes"
];
Expand Down
3 changes: 3 additions & 0 deletions src/panels/installed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class HacsInstalled extends LitElement {
integrations: [],
plugins: [],
appdaemon_apps: [],
netdaemon_apps: [],
python_scripts: [],
themes: []
};
Expand All @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/panels/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
Expand Down

0 comments on commit bb11255

Please sign in to comment.