feat: add last update to control pannel

This commit is contained in:
Florian Bezannier
2022-11-01 15:39:50 +01:00
committed by Florian BEZANNIER
parent 471064de3e
commit 421f109ee9
+2 -1
View File
@@ -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(),