mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 01:15:10 -06:00
refactor: websockets into 'connect' module, rename & adjust generally
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package gomeassistant
|
||||
|
||||
import (
|
||||
"github.com/Xevion/go-ha/internal/connect"
|
||||
"github.com/Xevion/go-ha/internal/services"
|
||||
ws "github.com/Xevion/go-ha/internal/websocket"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
@@ -31,7 +31,7 @@ type Service struct {
|
||||
ZWaveJS *services.ZWaveJS
|
||||
}
|
||||
|
||||
func newService(conn *ws.WebsocketWriter) *Service {
|
||||
func newService(conn *connect.HAConnection) *Service {
|
||||
return &Service{
|
||||
AdaptiveLighting: services.BuildService[services.AdaptiveLighting](conn),
|
||||
AlarmControlPanel: services.BuildService[services.AlarmControlPanel](conn),
|
||||
|
||||
Reference in New Issue
Block a user