mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 09:08:41 +00:00
Merge remote-tracking branch 'upstream/devirtualize-set-update-interval' into integration
This commit is contained in:
@@ -21,8 +21,6 @@ class SDS011Component : public Component, public uart::UARTDevice {
|
||||
void dump_config() override;
|
||||
void loop() override;
|
||||
|
||||
void set_update_interval(uint32_t val) { /* ignore */
|
||||
}
|
||||
void set_update_interval_min(uint8_t update_interval_min);
|
||||
void set_working_state(bool working_state);
|
||||
|
||||
|
||||
@@ -520,7 +520,6 @@ void PollingComponent::stop_poller() {
|
||||
}
|
||||
|
||||
uint32_t PollingComponent::get_update_interval() const { return this->update_interval_; }
|
||||
void PollingComponent::set_update_interval(uint32_t update_interval) { this->update_interval_ = update_interval; }
|
||||
|
||||
void __attribute__((noinline, cold))
|
||||
WarnIfComponentBlockingGuard::warn_blocking(Component *component, uint32_t blocking_time) {
|
||||
|
||||
@@ -547,12 +547,10 @@ class PollingComponent : public Component {
|
||||
explicit PollingComponent(uint32_t update_interval);
|
||||
|
||||
/** Manually set the update interval in ms for this polling object.
|
||||
*
|
||||
* Override this if you want to do some validation for the update interval.
|
||||
*
|
||||
* @param update_interval The update interval in ms.
|
||||
*/
|
||||
virtual void set_update_interval(uint32_t update_interval);
|
||||
void set_update_interval(uint32_t update_interval) { this->update_interval_ = update_interval; }
|
||||
|
||||
// ========== OVERRIDE METHODS ==========
|
||||
// (You'll only need this when creating your own custom sensor)
|
||||
|
||||
Reference in New Issue
Block a user