Skip to content

Commit

Permalink
fix: used proper field type for sensors_to_sow
Browse files Browse the repository at this point in the history
Signed-off-by: joshuaunity <[email protected]>
  • Loading branch information
joshuaunity committed Oct 2, 2024
1 parent 0191b79 commit a44926a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexmeasures/data/schemas/generic_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class GenericAssetSchema(ma.SQLAlchemySchema):
only=("id", "name", "account_id", "generic_asset_type"),
)
sensors = ma.Nested("SensorSchema", many=True, dump_only=True, only=("id", "name"))
sensors_to_show = SensorsToShowSchema(required=False)
sensors_to_show = JSON(required=False)
production_price_sensor_id = fields.Int(required=False, allow_none=True)
consumption_price_sensor_id = fields.Int(required=False, allow_none=True)
inflexible_device_sensor_ids = fields.List(
Expand Down

0 comments on commit a44926a

Please sign in to comment.