chore: update carbon pkg to v2 latest, bump version

This commit is contained in:
2025-08-01 21:01:51 -05:00
parent d281d70d8c
commit e13fd6ab5b
12 changed files with 31 additions and 102 deletions

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"time"
"github.com/golang-module/carbon"
"github.com/dromara/carbon/v2"
"github.com/Xevion/go-ha/internal"
"github.com/Xevion/go-ha/internal/connect"
@@ -18,7 +18,7 @@ type EventListener struct {
betweenStart string
betweenEnd string
throttle time.Duration
lastRan carbon.Carbon
lastRan *carbon.Carbon
exceptionDates []time.Time
exceptionRanges []types.TimeRange