EffectivePriority returns the effective priority
()
| 24 | |
| 25 | // EffectivePriority returns the effective priority |
| 26 | func (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 | |
| 35 | type plan struct { |
| 36 | Id int |
no test coverage detected