From c23d2e2eae06c1fb6e16b733fe130841b118d451 Mon Sep 17 00:00:00 2001 From: "create-issue-branch[bot]" <53036503+create-issue-branch[bot]@users.noreply.github.com> Date: Mon, 6 Sep 2021 14:23:34 +0200 Subject: [PATCH] Backport PR #173: Fix bug: broken (dev) CLI command for adding a GenericAssetType Rename CLI option: hover_label becomes description. * Create draft PR for #172 * Rename CLI option * Changelog entry Co-authored-by: Flix6x Co-authored-by: F.N. Claessen --- documentation/changelog.rst | 1 + flexmeasures/data/scripts/cli_tasks/data_add.py | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/changelog.rst b/documentation/changelog.rst index 723614270..8a5ff6754 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 ---------------------- 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."""