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

Yield after calls to timezone_at in update_zones #5

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Conversation

pnbruckner
Copy link
Owner

At startup, and whenever a zone or the core config changes, a list of zones is created to use in the config flow. For each existing zone, its time zone is determined to be compared to the core config time zone. This process of determining time zones can take a while and was being done in an event loop callback. This change moves that code into a coroutine that yields between the lengthy time zone calls.

Fixes #4.

@pnbruckner pnbruckner merged commit 092c495 into main Feb 13, 2024
4 checks passed
@pnbruckner pnbruckner deleted the update-zones branch February 13, 2024 15:19
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.

long setup times (possibly causing other timing related problems.)
1 participant