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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user