Sessions: for integrated devices use loadpoint name instead of guest vehicle (#20129)

This commit is contained in:
andig 2025-03-26 15:54:23 +01:00 • committed by GitHub
parent 2f62a1cd68
commit 0ea32cc82a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,6 +35,8 @@ func (lp *Loadpoint) createSession() {
if vehicle := lp.GetVehicle(); vehicle != nil {
lp.session.Vehicle = vehicle.Title()
} else if lp.chargerHasFeature(api.IntegratedDevice) {
lp.session.Vehicle = lp.GetTitle()
}
if c, ok := lp.charger.(api.Identifier); ok {