Skip to content

Conversation

@matvey00z
Copy link
Contributor

Fixes #997

@netlify
Copy link

netlify bot commented Sep 12, 2025

Deploy Preview for viseron canceled.

Name Link
🔨 Latest commit 965a707
🔍 Latest deploy log https://app.netlify.com/projects/viseron/deploys/68c46799ef4572000857241f

@roflcoopter
Copy link
Owner

There is potentially a race condition going on here.
If you intend to use the PTZ component but it sets up after the Telegram component, TelegramPTZ wont be instantiated.

Another more fail-safe approach would be a small loop that checks the dict vis.data[LOADING] and vis.data[LOADED] to see if it contains the ptz key. Or it could simply raise ComponentNotReady which will cause Viseron to retry setup of the component

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.

Telegram and ptz error

2 participants