Minor spelling (#622)

This commit is contained in:
Aalian Khan 2020-05-26 18:52:23 -04:00 committed by GitHub
parent 644b9ea0d2
commit 7edcfae2dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ the latest values.
However, there's a small problem with that approach: ``loop()`` gets called very often (about 60 times per second).
If we would publish a new state each time that method is called we would quickly make the node unresponsive.
So this fix this, we will use an alternative class to :apiclass:`Component`: :apiclass:`PollingComponent`.
So lets fix this, we will use an alternative class to :apiclass:`Component`: :apiclass:`PollingComponent`.
This class is for situations where you have something that should get called repeatedly with some **update interval**.
In the code above, we can simply replace :apiclass:`Component` by :apiclass:`PollingComponent` and
``loop()`` by a special method ``update()`` which will be called with an interval we can specify.