From 421f109ee9f2b73a51cedc22fe2a5a344a2e2f50 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sat, 17 Sep 2022 09:18:38 +0200 Subject: [PATCH] feat: add last update to control pannel --- psa_car_controller/web/view/control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psa_car_controller/web/view/control.py b/psa_car_controller/web/view/control.py index 3d3e562..5a4b2c3 100644 --- a/psa_car_controller/web/view/control.py +++ b/psa_car_controller/web/view/control.py @@ -48,7 +48,8 @@ def get_control_tabs(config): } el.append(dbc.Container(dbc.Row(children=create_card(cards)), fluid=True)) buttons_row.extend([Button(REFRESH_SWITCH, car.vin, - html.Img(src="assets/images/sync.svg", width="50px"), + html.Div([html.Img(src="assets/images/sync.svg", width="50px"), + car.status.get_energy('Electric').updated_at.strftime("%X %x")]), myp.remote_client.wakeup).get_html(), Switch(CHARGE_SWITCH, car.vin, "Charge", myp.remote_client.charge_now, charging_state).get_html(),