Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More use of marshmallow validation in CLI command `flexmeasures add s…
…chedule` (#394) * Fix help and validation of CLI command: flexmeasures add schedule Signed-off-by: F.N. Claessen <felix@seita.nl> * Validate --from field for CLI command: flexmeasures add schedule Signed-off-by: F.N. Claessen <felix@seita.nl> * Validate --duration field for CLI command: flexmeasures add schedule Signed-off-by: F.N. Claessen <felix@seita.nl> * Validate sensor fields for CLI command: flexmeasures add schedule Signed-off-by: F.N. Claessen <felix@seita.nl>
- Loading branch information
Showing
2 changed files
with
22 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .generic_assets import GenericAssetIdField as AssetIdField # noqa F401 | ||
from .sensors import SensorIdField as SensorIdField # noqa F401 | ||
from .sensors import SensorIdField # noqa F401 | ||
from .times import AwareDateTimeField, DurationField # noqa F401 |