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 16 of 21, split alphabetically by component (sm10bit_base .. ssd1331_spi).
18 lines
348 B
C++
18 lines
348 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/sm10bit_base/sm10bit_base.h"
|
|
#include "esphome/core/hal.h"
|
|
|
|
namespace esphome::sm2335 {
|
|
|
|
class SM2335 final : public sm10bit_base::Sm10BitBase {
|
|
public:
|
|
SM2335() = default;
|
|
|
|
void setup() override;
|
|
void dump_config() override;
|
|
};
|
|
|
|
} // namespace esphome::sm2335
|