my callback keeps returning a NoneType whilst I have tried using strings and datetime as input.
@dash_app.callback(
Output(component_id="forwardPrices", component_property="figure"),
[Input(component_id="my-datetime-picker-single-tradeDateForwardPrices", component_property="trade_Date")],
prevent_initial_call=False,
)
def update_output(trade_Date):
return forwardsDashboard.forwardPrices(trade_Date)
dcc.DatePickerSingle(
id='my-datetime-picker-single-tradeDateForwardPrices',
# min_date_allowed=date(2019, 1, 1),
# max_date_allowed=date.today() - datetime.timedelta(days=1),
# initial_visible_month=date.today() - datetime.timedelta(days=1),
date='2021/01/02'
),
dcc.Graph(id='forwardPrices'),
why does it keep returning None and what is there to do?