mill1000 / esphome-winix-c545

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

Optimize code executed in loop to eliminate warnings #1

Closed mill1000 closed 11 months ago

mill1000 commented 11 months ago

The component current causes the warnings in the following form to be generated when packets are received.

[00:00:00][W][component:204]: Component xxxxxx took a long time for an operation (x.xx s).
[00:00:00][W][component:205]: Components should block for at most 20-30ms.

Some targets for optimization are: