esphome/esphome/components/interval/interval.h
Otto Winter 8e75980ebd
Cleanup dashboard JS (#491)
* Cleanup dashboard JS

* Add vscode

* Save start_mark/end_mark

* Updates

* Updates

* Remove need for cv.nameable

It's a bit hacky but removes so much bloat from integrations

* Add enum helper

* Document APIs, and Improvements

* Fixes

* Fixes

* Update PULL_REQUEST_TEMPLATE.md

* Updates

* Updates

* Updates
2019-04-22 21:56:30 +02:00

16 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