MCPcopy Create free account
hub / github.com/evcc-io/evcc / EffectivePriority

Method EffectivePriority

core/loadpoint_effective.go:26–33  ·  view source on GitHub ↗

EffectivePriority returns the effective priority

()

Source from the content-addressed store, hash-verified

24
25// EffectivePriority returns the effective priority
26func (lp *Loadpoint) EffectivePriority() int {
27 if v := lp.GetVehicle(); v != nil {
28 if res, ok := v.OnIdentified().GetPriority(); ok {
29 return res
30 }
31 }
32 return lp.GetPriority()
33}
34
35type plan struct {
36 Id int

Callers 1

Calls 4

GetVehicleMethod · 0.95
GetPriorityMethod · 0.95
GetPriorityMethod · 0.65
OnIdentifiedMethod · 0.65

Tested by

no test coverage detected