Rename SoC to Soc and LoadPoint to Loadpoint (#5549)
This commit is contained in:
parent
54f204c0f8
commit
03d6d1418a
165 changed files with 1054 additions and 1032 deletions
|
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
// Event is a notification event
|
||||
type Event struct {
|
||||
LoadPoint *int // optional loadpoint id
|
||||
Loadpoint *int // optional loadpoint id
|
||||
Event string
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ func (h *Hub) apply(ev Event, tmpl *template.Template) (string, error) {
|
|||
|
||||
// get all values from cache
|
||||
for _, p := range h.cache.All() {
|
||||
if p.LoadPoint == nil || ev.LoadPoint == p.LoadPoint {
|
||||
if p.Loadpoint == nil || ev.Loadpoint == p.Loadpoint {
|
||||
attr[p.Key] = p.Val
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue