mirror of
https://github.com/Xevion/go-ha.git
synced 2026-01-31 06:24:27 -06:00
make an interface for State object
This commit is contained in:
+2
-2
@@ -86,7 +86,7 @@ func checkExceptionRanges(eList []timeRange) conditionCheck {
|
||||
return cc
|
||||
}
|
||||
|
||||
func checkEnabledEntity(s *State, infos []internal.EnabledDisabledInfo) conditionCheck {
|
||||
func checkEnabledEntity(s State, infos []internal.EnabledDisabledInfo) conditionCheck {
|
||||
cc := conditionCheck{fail: false}
|
||||
if len(infos) == 0 {
|
||||
return cc
|
||||
@@ -114,7 +114,7 @@ func checkEnabledEntity(s *State, infos []internal.EnabledDisabledInfo) conditio
|
||||
return cc
|
||||
}
|
||||
|
||||
func checkDisabledEntity(s *State, infos []internal.EnabledDisabledInfo) conditionCheck {
|
||||
func checkDisabledEntity(s State, infos []internal.EnabledDisabledInfo) conditionCheck {
|
||||
cc := conditionCheck{fail: false}
|
||||
if len(infos) == 0 {
|
||||
return cc
|
||||
|
||||
Reference in New Issue
Block a user