Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Commit 1ac4249

Browse files
committed
fix: include beginning of week date as possible visit_date for the visits_this_week attribute
1 parent 04b89a0 commit 1ac4249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/lifetime_fitness/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def async_update(self):
7575
visits_this_year += 1
7676
if visit_date.month == today.month:
7777
visits_this_month += 1
78-
if visit_date > beginning_of_week_date:
78+
if visit_date >= beginning_of_week_date:
7979
visits_this_week += 1
8080
if last_visit_timestamp is None or visit_timestamp > last_visit_timestamp:
8181
last_visit_timestamp = visit_timestamp

0 commit comments

Comments
 (0)