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: Prevent inaccessible calendars from deleting #136

Merged
merged 1 commit into from
Oct 6, 2022
Merged

Conversation

tykeal
Copy link
Owner

@tykeal tykeal commented Oct 6, 2022

A calendar that is inaccessible when the integration is starting up
primarily during a restart of HA, but also when the integration is
reloaded, could potentially cause currently defined lock slots to get
deleted. This can cause major issues, particularly if the slot had an
override on the code in place as the override is lost.

Instead, we keep the sensors as unavailable and do not fire any events
related to setting or clearing the the codes until we have managed to
load the calendar successfully.

Issue: Fixes #126
Signed-off-by: Andrew Grimberg tykeal@bardicgrove.org

A calendar that is inaccessible when the integration is starting up
primarily during a restart of HA, but also when the integration is
reloaded, could potentially cause currently defined lock slots to get
deleted. This can cause major issues, particularly if the slot had an
override on the code in place as the override is lost.

Instead, we keep the sensors as unavailable and do not fire any events
related to setting or clearing the the codes until we have managed to
load the calendar successfully.

Issue: Fixes #126
Signed-off-by: Andrew Grimberg <tykeal@bardicgrove.org>
@tykeal tykeal added the bug Something isn't working label Oct 6, 2022
@tykeal tykeal added this to the v0.75 milestone Oct 6, 2022
@tykeal tykeal enabled auto-merge October 6, 2022 19:20
@tykeal tykeal merged commit 1c888da into main Oct 6, 2022
@tykeal tykeal deleted the calendar_cache branch October 6, 2022 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Errors in getting calendar on startup can delete lock slots
1 participant