Skip to content

Fix camera usage cache updates - #262

Merged
bkbilly merged 1 commit into
bkbilly:masterfrom
romasku:fix/camera-usage-cache
Jul 30, 2026
Merged

Fix camera usage cache updates#262
bkbilly merged 1 commit into
bkbilly:masterfrom
romasku:fix/camera-usage-cache

Conversation

@romasku

@romasku romasku commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

This fixes a bug where inotify watched detected camera state change, but did not update self.cam_used. This caused periodic updates to overwrite the state back to the wrong one. The fix is to update self.cam_used inside _watch_events. Verified it with my HA setup: seems to fix my issues with the camera status.

@bkbilly

bkbilly commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Thank you for this PR, I hadn't noticed this issue.

@bkbilly
bkbilly merged commit 71c54da into bkbilly:master Jul 30, 2026
4 checks passed
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.

2 participants