mirror of
https://github.com/Xevion/go-ha.git
synced 2026-01-31 02:24:26 -06:00
enforce ToState when using Duration
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ type elBuilder1 struct {
|
||||
|
||||
func (b elBuilder1) EntityIds(entityIds ...string) elBuilder2 {
|
||||
if len(entityIds) == 0 {
|
||||
log.Fatalln("must pass at least one entityId to EntityIds()")
|
||||
panic("must pass at least one entityId to EntityIds()")
|
||||
} else {
|
||||
b.entityListener.entityIds = entityIds
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user