Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that should_update only triggers in minutes 1-5 and 31-35 past the hour #366

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ArchaicRider
Copy link

Description

Changed should_update trigger to only trigger twice an hour

Motivation and Context

The current code allows triggers twice in six minutes if the sequence is 0,5,10,15...55 at 0,5,30, & 35 minutes past the hour
Fixes issue #361

How Has This Been Tested?

Change the code on my running system and restarted exactly on the hour. Before the change, four runs an hour, afterwards two runs an hour
Checked by reviewing the logs

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Ensure that should_update only triggers in minutes 1-5 and 31-35 past the hour
dgibbs64 added a commit to dgibbs64/ha-hildebrandglow-dcc that referenced this pull request Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant