mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-09 10:07:25 -06:00
refactor: move parsing into internal/parse module, move other functions into misc
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/Xevion/gome-assistant/internal"
|
||||
"github.com/Xevion/gome-assistant/internal/parse"
|
||||
"github.com/golang-module/carbon"
|
||||
)
|
||||
|
||||
@@ -75,7 +76,7 @@ func (sb scheduleBuilder) Call(callback ScheduleCallback) scheduleBuilderCall {
|
||||
|
||||
// At takes a string in 24hr format time like "15:30".
|
||||
func (sb scheduleBuilderCall) At(s string) scheduleBuilderEnd {
|
||||
t := internal.ParseTime(s)
|
||||
t := parse.ParseTime(s)
|
||||
sb.schedule.hour = t.Hour()
|
||||
sb.schedule.minute = t.Minute()
|
||||
return scheduleBuilderEnd(sb)
|
||||
|
||||
Reference in New Issue
Block a user