mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 13:27:14 +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 8 of 21, split alphabetically by component (hm3301 .. integration).
16 lines
292 B
C++
16 lines
292 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/i2c/i2c.h"
|
|
|
|
namespace esphome::i2c_device {
|
|
|
|
class I2CDeviceComponent final : public Component, public i2c::I2CDevice {
|
|
public:
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
};
|
|
|
|
} // namespace esphome::i2c_device
|