Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Error when clicking a lot on xiaomi switch button #185

Open
greg95000 opened this issue May 2, 2020 · 1 comment
Open

Error when clicking a lot on xiaomi switch button #185

greg95000 opened this issue May 2, 2020 · 1 comment

Comments

@greg95000
Copy link

When I click on my xiaomi switch button to trigger an action If I'm too fast I get this error in my logs
"Fast change detected, delay it for ...".
When it happen there is no return to a normal state.

I found the lines to change.

https://github.com/doudz/zigate/blob/master/zigate/core.py#L2980

I tried to remove the condition and it works. Why do we use it? Can we remove it properly?
I think the code is making some infinite loop on this condition with multiple thread and the state is never going back to the normal

@doudz
Copy link
Owner

doudz commented May 3, 2020

Fast change detection is buggy, it's safe to disable it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants