From 11097cf47cb40e911464da8965b2b6882eee0a48 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:03:22 +1300 Subject: [PATCH] Use project name before friendly name and hostname (#62) --- entrypoint.py | 2 +- tests/complete-manifest-template.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.py b/entrypoint.py index 1d8a3f9..aafcdc6 100755 --- a/entrypoint.py +++ b/entrypoint.py @@ -313,7 +313,7 @@ def main(argv) -> int: if args.complete_manifest: manifest = { - "name": config.friendly_name or config.original_name, + "name": config.project_name or config.friendly_name or config.original_name, "version": config.project_version or esphome_version, "home_assistant_domain": "esphome", "new_install_prompt_erase": False, diff --git a/tests/complete-manifest-template.json b/tests/complete-manifest-template.json index 31e0aa4..47f9f8f 100644 --- a/tests/complete-manifest-template.json +++ b/tests/complete-manifest-template.json @@ -1,5 +1,5 @@ { - "name": "test", + "name": "esphome.example-project", "version": "3.5.0", "home_assistant_domain": "esphome", "new_install_prompt_erase": false,