From aed7b3fbb20eb72304b9bb80b7029fe7bf9325e8 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Fri, 18 Oct 2019 15:33:18 +0200 Subject: [PATCH] Fix typo in Component::set_interval (#767) Ouch... --- esphome/core/component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/core/component.cpp b/esphome/core/component.cpp index 1b39514103..0547fcbdd5 100644 --- a/esphome/core/component.cpp +++ b/esphome/core/component.cpp @@ -107,7 +107,7 @@ void Component::set_timeout(uint32_t timeout, std::function &&f) { // N App.scheduler.set_timeout(this, "", timeout, std::move(f)); } void Component::set_interval(uint32_t interval, std::function &&f) { // NOLINT - App.scheduler.set_timeout(this, "", interval, std::move(f)); + App.scheduler.set_interval(this, "", interval, std::move(f)); } bool Component::is_failed() { return (this->component_state_ & COMPONENT_STATE_MASK) == COMPONENT_STATE_FAILED; } bool Component::can_proceed() { return true; }