mill1000 / esphome-winix-c545

An ESPHome external component for the Winix C545 air purifier.
MIT License
16 stars 1 forks source link

Optimize implementation to try to eliminate warnings about blocking #2

Closed mill1000 closed 11 months ago

mill1000 commented 11 months ago

Current warnings are

[21:42:22][W][component:214]: Component winix_c545 took a long time for an operation (0.15 s). [21:42:22][W][component:215]: Components should block for at most 20-30ms.

with these changes it's reduced by about half

[22:03:05][W][component:214]: Component winix_c545 took a long time for an operation (0.08 s). [22:03:05][W][component:215]: Components should block for at most 20-30ms.

Close #1