mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:25:35 +00:00
Add the C++ `final` specifier to leaf, user-configurable component classes and automation action/trigger/condition primitives so that classes meant to be terminal cannot be subclassed by external components. Only classes never used as a base anywhere in the tree are marked. Part 15 of 21, split alphabetically by component (script .. slow_pwm).
17 lines
368 B
C++
17 lines
368 B
C++
#pragma once
|
|
|
|
#include "esphome/components/number/number.h"
|
|
#include "../seeed_mr24hpc1.h"
|
|
|
|
namespace esphome::seeed_mr24hpc1 {
|
|
|
|
class MotionToRestTimeNumber final : public number::Number, public Parented<MR24HPC1Component> {
|
|
public:
|
|
MotionToRestTimeNumber() = default;
|
|
|
|
protected:
|
|
void control(float value) override;
|
|
};
|
|
|
|
} // namespace esphome::seeed_mr24hpc1
|