Revert "Planner: add continuous strategy (BC) (#24423)"
This reverts commit 291898fea9.
This commit is contained in:
parent
6f28537531
commit
7acc133f3c
68 changed files with 950 additions and 2245 deletions
|
|
@ -1,17 +1,10 @@
|
|||
package api
|
||||
|
||||
import "time"
|
||||
|
||||
type RepeatingPlan struct {
|
||||
Weekdays []int `json:"weekdays"` // 0-6 (Sunday-Saturday)
|
||||
Time string `json:"time"` // HH:MM
|
||||
Tz string `json:"tz"` // timezone in IANA format
|
||||
Soc int `json:"soc"` // target soc
|
||||
Precondition int64 `json:"precondition"` // precondition duration in seconds
|
||||
Active bool `json:"active"` // active flag
|
||||
Precondition int64 `json:"-" todo:"..."` // TODO deprecated
|
||||
}
|
||||
|
||||
type PlanStrategy struct {
|
||||
Continuous bool `json:"continuous"` // force continuous planning
|
||||
Precondition time.Duration `json:"precondition"` // precondition duration in seconds
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue