Skip to content

Commit 027fe08

Browse files
committed
Fix minor typos
Fixes #94
1 parent 8def311 commit 027fe08

File tree

19 files changed

+33
-33
lines changed

19 files changed

+33
-33
lines changed

usecases/cem/cevc/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cevc
33
import "github.com/enbility/eebus-go/api"
44

55
const (
6-
// Update of the list of remote entites supporting the Use Case
6+
// Update of the list of remote entities supporting the Use Case
77
//
88
// Use `RemoteEntities` to get the current data
99
UseCaseSupportUpdate api.EventType = "cem-cevc-UseCaseSupportUpdate"

usecases/cem/evcc/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const (
1111
)
1212

1313
const (
14-
// Update of the list of remote entites supporting the Use Case
14+
// Update of the list of remote entities supporting the Use Case
1515
//
1616
// Use `RemoteEntities` to get the current data
1717
UseCaseSupportUpdate api.EventType = "cem-evcc-UseCaseSupportUpdate"

usecases/cem/evcem/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package evcem
33
import "github.com/enbility/eebus-go/api"
44

55
const (
6-
// Update of the list of remote entites supporting the Use Case
6+
// Update of the list of remote entities supporting the Use Case
77
//
88
// Use `RemoteEntities` to get the current data
99
UseCaseSupportUpdate api.EventType = "cem-evcem-UseCaseSupportUpdate"

usecases/cem/evsecc/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package evsecc
33
import "github.com/enbility/eebus-go/api"
44

55
const (
6-
// Update of the list of remote entites supporting the Use Case
6+
// Update of the list of remotei entities supporting the Use Case
77
//
88
// Use `RemoteEntities` to get the current data
99
UseCaseSupportUpdate api.EventType = "cem-evsecc-UseCaseSupportUpdate"

usecases/cem/evsoc/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package evsoc
33
import "github.com/enbility/eebus-go/api"
44

55
const (
6-
// Update of the list of remote entites supporting the Use Case
6+
// Update of the list of remote entities supporting the Use Case
77
//
88
// Use `RemoteEntities` to get the current data
99
UseCaseSupportUpdate api.EventType = "cem-evsoc-UseCaseSupportUpdate"

usecases/cem/opev/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package opev
33
import "github.com/enbility/eebus-go/api"
44

55
const (
6-
// Update of the list of remote entites supporting the Use Case
6+
// Update of the list of remote entities supporting the Use Case
77
//
88
// Use `RemoteEntities` to get the current data
99
UseCaseSupportUpdate api.EventType = "cem-opev-UseCaseSupportUpdate"

usecases/cem/oscev/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package oscev
33
import "github.com/enbility/eebus-go/api"
44

55
const (
6-
// Update of the list of remote entites supporting the Use Case
6+
// Update of the list of remote entities supporting the Use Case
77
//
88
// Use `RemoteEntities` to get the current data
99
UseCaseSupportUpdate api.EventType = "cem-oscev-UseCaseSupportUpdate"

usecases/cem/vabd/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package vabd
33
import "github.com/enbility/eebus-go/api"
44

55
const (
6-
// Update of the list of remote entites supporting the Use Case
6+
// Update of the list of remote entities supporting the Use Case
77
//
88
// Use `RemoteEntities` to get the current data
99
UseCaseSupportUpdate api.EventType = "cem-vabd-UseCaseSupportUpdate"

usecases/cem/vapd/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package vapd
33
import "github.com/enbility/eebus-go/api"
44

55
const (
6-
// Update of the list of remote entites supporting the Use Case
6+
// Update of the list of remote entities supporting the Use Case
77
//
88
// Use `RemoteEntities` to get the current data
99
UseCaseSupportUpdate api.EventType = "cem-vapd-UseCaseSupportUpdate"

usecases/cs/lpc/events.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ func (e *LPC) deviceConnected(payload spineapi.EventPayload) {
7575
// check if there is a DeviceDiagnosis server on one or more entities
7676
remoteDevice := payload.Device
7777

78-
var deviceDiagEntites []spineapi.EntityRemoteInterface
78+
var deviceDiagEntities []spineapi.EntityRemoteInterface
7979

80-
entites := remoteDevice.Entities()
81-
for _, entity := range entites {
80+
entities := remoteDevice.Entities()
81+
for _, entity := range entities {
8282
if !e.IsCompatibleEntityType(entity) {
8383
continue
8484
}
@@ -88,19 +88,19 @@ func (e *LPC) deviceConnected(payload spineapi.EventPayload) {
8888
continue
8989
}
9090

91-
deviceDiagEntites = append(deviceDiagEntites, entity)
91+
deviceDiagEntities = append(deviceDiagEntities, entity)
9292
}
9393

94-
logging.Log().Debug("cs-lpc:", len(deviceDiagEntites), "DeviceDiagnosis Server found")
94+
logging.Log().Debug("cs-lpc:", len(deviceDiagEntities), "DeviceDiagnosis Server found")
9595

9696
// the remote device does not have a DeviceDiagnosis Server, which it should
97-
if len(deviceDiagEntites) == 0 {
97+
if len(deviceDiagEntities) == 0 {
9898
return
9999
}
100100

101101
// we only found one matching entity, as it should be, subscribe
102-
if len(deviceDiagEntites) == 1 {
103-
if localDeviceDiag, err := client.NewDeviceDiagnosis(e.LocalEntity, deviceDiagEntites[0]); err == nil {
102+
if len(deviceDiagEntities) == 1 {
103+
if localDeviceDiag, err := client.NewDeviceDiagnosis(e.LocalEntity, deviceDiagEntities[0]); err == nil {
104104
e.heartbeatDiag = localDeviceDiag
105105
if _, err := localDeviceDiag.Subscribe(); err != nil {
106106
logging.Log().Debug(err)

0 commit comments

Comments
 (0)