chore: reformat, normalize imports

This commit is contained in:
2025-08-01 20:44:38 -05:00
parent 9b8ef545a6
commit 8fe6bc0cff
31 changed files with 94 additions and 145 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/golang-module/carbon"
"github.com/Xevion/go-ha/internal"
ws "github.com/Xevion/go-ha/internal/connect"
"github.com/Xevion/go-ha/internal/connect"
"github.com/Xevion/go-ha/types"
)
@@ -141,7 +141,7 @@ type BaseEventMsg struct {
}
/* Functions */
func callEventListeners(app *App, msg ws.ChannelMessage) {
func callEventListeners(app *App, msg connect.ChannelMessage) {
baseEventMsg := BaseEventMsg{}
_ = json.Unmarshal(msg.Raw, &baseEventMsg)
listeners, ok := app.eventListeners[baseEventMsg.Event.EventType]