Rename SoC to Soc and LoadPoint to Loadpoint (#5549)

This commit is contained in:
andig 2022-12-23 10:19:23 +01:00 • committed by GitHub
parent 54f204c0f8
commit 03d6d1418a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
165 changed files with 1054 additions and 1032 deletions

View file

@ -7,7 +7,7 @@ import (
"github.com/evcc-io/evcc/core/db"
)
func (lp *LoadPoint) chargeMeterTotal() float64 {
func (lp *Loadpoint) chargeMeterTotal() float64 {
m, ok := lp.chargeMeter.(api.MeterEnergy)
if !ok {
return 0
@ -24,7 +24,7 @@ func (lp *LoadPoint) chargeMeterTotal() float64 {
// createSession creates a charging session. The created timestamp is empty until set by evChargeStartHandler.
// The session is not persisted yet. That will only happen when stopSession is called.
func (lp *LoadPoint) createSession() {
func (lp *Loadpoint) createSession() {
// test guard
if lp.db == nil || lp.session != nil {
return
@ -44,7 +44,7 @@ func (lp *LoadPoint) createSession() {
}
// stopSession ends a charging session segment and persists the session.
func (lp *LoadPoint) stopSession() {
func (lp *Loadpoint) stopSession() {
// test guard
if lp.db == nil || lp.session == nil {
return
@ -68,7 +68,7 @@ func (lp *LoadPoint) stopSession() {
type sessionOption func(*db.Session)
// updateSession updates any parameter of a charging session and persists the session.
func (lp *LoadPoint) updateSession(opts ...sessionOption) {
func (lp *Loadpoint) updateSession(opts ...sessionOption) {
// test guard
if lp.db == nil || lp.session == nil {
return
@ -84,7 +84,7 @@ func (lp *LoadPoint) updateSession(opts ...sessionOption) {
}
// clearSession clears the charging session without persisting it.
func (lp *LoadPoint) clearSession() {
func (lp *Loadpoint) clearSession() {
// test guard
if lp.db == nil {
return