1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 06:32:22 +01:00

Add central function scheduler (#609)

* Add central function scheduler

* Avoid unnecessary copies

* Lint

* Prevent more copies, store pointers

* Add never update_interval
This commit is contained in:
Otto Winter
2019-06-07 14:26:40 +02:00
committed by GitHub
parent 7a895adec9
commit b51cbc4207
6 changed files with 273 additions and 128 deletions

View File

@@ -6,6 +6,7 @@
#include "esphome/core/preferences.h"
#include "esphome/core/component.h"
#include "esphome/core/helpers.h"
#include "esphome/core/scheduler.h"
#ifdef USE_BINARY_SENSOR
#include "esphome/components/binary_sensor/binary_sensor.h"
@@ -197,6 +198,8 @@ class Application {
}
#endif
Scheduler scheduler;
protected:
friend Component;