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

Optimize idle timer and legacy device polling #7574

Merged
merged 1 commit into from
Feb 5, 2024

Commits on Feb 4, 2024

  1. Optimize idle timer and legacy device polling

    This part of the code is a mess and grown over time.
    
    The PR tries to:
    
    - Break up looping over all sensors and lights by only processing up to 5 from each per idle timer call.
    - Fetch modelid/manufacturer name from parent Device instead of looping over sibling lights and sensors.
    - Control pacing of legacy poll manager via DDF device tick to not schedule things in parallel.
    
    Over time the legacy idle timer and poll manager code needs to go, it will take some iterations to do this and even break legacy devices in the process, which needs to be converted to DDF.
    manup committed Feb 4, 2024
    Configuration menu
    Copy the full SHA
    04e99f6 View commit details
    Browse the repository at this point in the history