We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 687ce1e commit 787cc57Copy full SHA for 787cc57
components/switches/cron.go
@@ -46,7 +46,7 @@ func NewCron(cfg CronConfig) []*entity.Entity {
46
}
47
48
if cfg.Entities.Duration != nil {
49
- durationEntity = entity.NewEntity(*cfg.Entities.ExitCode).
+ durationEntity = entity.NewEntity(*cfg.Entities.Duration).
50
Type(entity.DomainSensor).
51
Name(cfg.Name + " Duration").
52
ID(cfg.UniqueID + "_duration").
0 commit comments