Skip to content

Commit

Permalink
add the missing sensor-id name and deprecate it
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>
  • Loading branch information
Ahmad-Wahid committed Jan 17, 2024
1 parent 52a9363 commit f4015cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flexmeasures/cli/data_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,18 @@ def add_source(name: str, model: str, version: str, source_type: str):
click.secho(f"Added source {source.__repr__()}", **MsgStyle.SUCCESS)


@fm_add_data.command("beliefs")
@fm_add_data.command("beliefs", cls=DeprecatedOptionsCommand)
@with_appcontext
@click.argument("file", type=click.Path(exists=True))
@click.option(
"--sensor",
"--sensor-id",
"sensor",
required=True,
type=SensorIdField(),
cls=DeprecatedOption,
deprecated=["--sensor-id"],
preferred="--sensor",
help="Record the beliefs under this sensor. Follow up with the sensor's ID. ",
)
@click.option(
Expand Down

0 comments on commit f4015cd

Please sign in to comment.