Skip to content

Commit

Permalink
Merge pull request #1 from ArchaicRider/main
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister authored Dec 18, 2024
2 parents 98cc0e4 + 7013e76 commit 5bba4b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/hildebrandglow_dcc/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ def device_name(resource, virtual_entity) -> str:


async def should_update() -> bool:
"""Check if time is between 0-5 or 30-35 minutes past the hour."""
"""Check if time is between 1-5 or 31-35 minutes past the hour."""
minutes = datetime.now().minute
if (0 <= minutes <= 5) or (30 <= minutes <= 35):
if (1 <= minutes <= 5) or (31 <= minutes <= 35):
return True
return False

Expand Down

0 comments on commit 5bba4b0

Please sign in to comment.