From 429652cea72a827d8e5b40da6b0d307cae99b71a Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sun, 9 Feb 2020 10:37:54 +0000 Subject: [PATCH] Fixes #69 --- src/components/buttons/HacsButtonMainAction.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/buttons/HacsButtonMainAction.ts b/src/components/buttons/HacsButtonMainAction.ts index 7fb7ebb53..47161821a 100644 --- a/src/components/buttons/HacsButtonMainAction.ts +++ b/src/components/buttons/HacsButtonMainAction.ts @@ -67,7 +67,10 @@ export class HacsButtonMainAction extends HacsRepositoryButton { RepositoryInstall() { if (this.pathExists && !this.repository.installed) { let path: string = this.repository.local_path; - if (this.repository.category === "theme") { + if ( + this.repository.category === "theme" || + this.repository.category === "python_script" + ) { path = `${path}/${this.repository.file_name}`; } swal(