mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 10:00:36 +01:00
17 lines
383 B
C
17 lines
383 B
C
|
#pragma once
|
||
|
|
||
|
#include "esphome/core/component.h"
|
||
|
#include "esphome/core/automation.h"
|
||
|
|
||
|
namespace esphome {
|
||
|
namespace interval {
|
||
|
|
||
|
class IntervalTrigger : public Trigger<>, public PollingComponent {
|
||
|
public:
|
||
|
void update() override { this->trigger(); }
|
||
|
float get_setup_priority() const override { return setup_priority::DATA; }
|
||
|
};
|
||
|
|
||
|
} // namespace interval
|
||
|
} // namespace esphome
|