From 8ac15dcb6c070499d783bd0ddfb7912b6f34a685 Mon Sep 17 00:00:00 2001 From: Flix6x Date: Mon, 6 Sep 2021 11:14:08 +0000 Subject: [PATCH 1/3] Create draft PR for #172 From 6769eeba691258acff960543fadca50b3ed8d1b9 Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Mon, 6 Sep 2021 13:14:59 +0200 Subject: [PATCH 2/3] Rename CLI option --- flexmeasures/data/scripts/cli_tasks/data_add.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flexmeasures/data/scripts/cli_tasks/data_add.py b/flexmeasures/data/scripts/cli_tasks/data_add.py index bd5866217..e013d060f 100755 --- a/flexmeasures/data/scripts/cli_tasks/data_add.py +++ b/flexmeasures/data/scripts/cli_tasks/data_add.py @@ -175,10 +175,9 @@ def add_sensor(**args): @with_appcontext @click.option("--name", required=True) @click.option( - "--hover-label", + "--description", type=str, - help="Label visible when hovering over the name in the UI.\n" - "Useful to explain acronyms, for example.", + help="Description (useful to explain acronyms, for example).", ) def add_generic_asset_type(**args): """Add a generic asset type.""" From 78221b66ebbb078b737e9bbafa912b9cd7379c95 Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Mon, 6 Sep 2021 13:17:37 +0200 Subject: [PATCH 3/3] Changelog entry --- documentation/changelog.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/documentation/changelog.rst b/documentation/changelog.rst index b10ec2842..66958f1e0 100644 --- a/documentation/changelog.rst +++ b/documentation/changelog.rst @@ -10,6 +10,7 @@ New features Bugfixes ----------- +* Fix (dev) CLI command for adding a GenericAssetType [see `PR #173 `_] Infrastructure / Support ----------------------