From a44926a7e16bc92011a4def2b7f027c2d57ba117 Mon Sep 17 00:00:00 2001 From: joshuaunity Date: Wed, 2 Oct 2024 11:19:27 +0100 Subject: [PATCH] fix: used proper field type for sensors_to_sow Signed-off-by: joshuaunity --- flexmeasures/data/schemas/generic_assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexmeasures/data/schemas/generic_assets.py b/flexmeasures/data/schemas/generic_assets.py index c1b739c6c..3658e082a 100644 --- a/flexmeasures/data/schemas/generic_assets.py +++ b/flexmeasures/data/schemas/generic_assets.py @@ -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(