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

Fix issue with no set Day of Week #40

Merged

Conversation

danhoeflinger
Copy link

@danhoeflinger danhoeflinger commented Mar 30, 2024

The PR fixes an issue with the chore_weekly candidate selection.
Without the PR, if no weekday is set, it is used without checking if it is None, and likely doesn't select an appropriate date.
The PR checks if a chore day is set. If it is, it uses it. If not, it just uses the day of the week of the start_date (which I think corresponds to the last completed date).

I believe this should fix #32, but I welcome more testing / reviews.

@danhoeflinger danhoeflinger mentioned this pull request Mar 30, 2024
4 tasks
@WhoDunDidIt
Copy link

I can confirm that this PR seems to fix the issue. I applied the changes, restarted HA and within a few seconds of HA fully booting, the chore sensors were updated with the appropriate values, no need to re-complete the chore!

Copy link

@WhoDunDidIt WhoDunDidIt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to fix the issue.

@bmcclure
Copy link
Owner

bmcclure commented Jul 7, 2024

Thanks so much, and sorry for the delay. Thanks looks good to me, I will get it merged!

@bmcclure bmcclure merged commit 6f474e8 into bmcclure:main Jul 7, 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.

Task due date Unknown
4 participants