Skip to content

Commit

Permalink
fix: nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
dansimau committed Dec 30, 2024
1 parent 136d763 commit a922ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automations/sensor_lights.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (a *SensorsTriggerLights) sensorTriggered(trigger hal.EntityInterface) bool
}

func (a *SensorsTriggerLights) handleSensorTriggered() {
if a.humanOverrideTimer.IsRunning() {
if a.humanOverrideTimer != nil && a.humanOverrideTimer.IsRunning() {
a.log.Info("Light overridden by human, skipping")

return
Expand Down

0 comments on commit a922ff0

Please sign in to comment.