Skip to content

Commit

Permalink
add entity type to the data add for-storage
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
  • Loading branch information
victorgarcia98 committed Oct 24, 2023
1 parent 69126cb commit 568a83b
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 @@ -1214,7 +1214,11 @@ def add_schedule_for_storage(
**MsgStyle.SUCCESS,
)
else:
success = make_schedule(asset_or_sensor_id=power_sensor.id, **scheduling_kwargs)
success = make_schedule(
asset_or_sensor_id=power_sensor.id,
entity_type=Sensor.__name__,
**scheduling_kwargs,
)
if success:
click.secho("New schedule is stored.", **MsgStyle.SUCCESS)

Expand Down

0 comments on commit 568a83b

Please sign in to comment.