mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-05 23:15:07 -06:00
refactor: move types out of app.go into types/, renamed module files
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"text/template"
|
||||
|
||||
ga "github.com/Xevion/go-ha"
|
||||
"github.com/Xevion/go-ha/types"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
@@ -98,7 +99,7 @@ func generate(config Config) error {
|
||||
config.HomeZoneEntityId = "zone.home"
|
||||
}
|
||||
|
||||
app, err := ga.NewApp(ga.NewAppRequest{
|
||||
app, err := ga.NewApp(types.NewAppRequest{
|
||||
URL: config.URL,
|
||||
HAAuthToken: config.HAAuthToken,
|
||||
HomeZoneEntityId: config.HomeZoneEntityId,
|
||||
|
||||
Reference in New Issue
Block a user