From 7e727b4d3f66abcd660948e3c4b252dab66125d3 Mon Sep 17 00:00:00 2001 From: joshuaunity Date: Mon, 28 Oct 2024 08:21:36 +0100 Subject: [PATCH] fix: removed sensors_to_show from assetForm Signed-off-by: joshuaunity --- flexmeasures/ui/crud/assets/forms.py | 1 - flexmeasures/ui/templates/crud/asset.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/flexmeasures/ui/crud/assets/forms.py b/flexmeasures/ui/crud/assets/forms.py index 3381754ba..f5e6c3870 100644 --- a/flexmeasures/ui/crud/assets/forms.py +++ b/flexmeasures/ui/crud/assets/forms.py @@ -44,7 +44,6 @@ class AssetForm(FlaskForm): render_kw={"placeholder": "--Click the map or enter a longitude--"}, ) attributes = StringField("Other attributes (JSON)", default="{}") - sensors_to_show = StringField("Sensors to show (JSON)", default="[]") production_price_sensor_id = SelectField( "Production price sensor", coerce=int, validate_choice=False ) diff --git a/flexmeasures/ui/templates/crud/asset.html b/flexmeasures/ui/templates/crud/asset.html index f33c36892..4d64f9ccc 100644 --- a/flexmeasures/ui/templates/crud/asset.html +++ b/flexmeasures/ui/templates/crud/asset.html @@ -199,7 +199,7 @@

Edit {{ asset.name }}

- {{ asset_form.sensors_to_show.label(class="col-sm-3 control-label") }} +