mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 19:48:39 +00:00
[ms8607] Mark configurable classes as final (#17147)
This commit is contained in:
@@ -10,7 +10,7 @@ namespace esphome::ms8607 {
|
||||
Class for I2CDevice used to communicate with the Humidity sensor
|
||||
on the chip. See MS8607Component instead
|
||||
*/
|
||||
class MS8607HumidityDevice : public i2c::I2CDevice {
|
||||
class MS8607HumidityDevice final : public i2c::I2CDevice {
|
||||
public:
|
||||
uint8_t get_address() { return address_; }
|
||||
};
|
||||
@@ -30,9 +30,9 @@ class MS8607HumidityDevice : public i2c::I2CDevice {
|
||||
- https://github.com/adafruit/Adafruit_MS8607
|
||||
- https://github.com/sparkfun/SparkFun_PHT_MS8607_Arduino_Library
|
||||
*/
|
||||
class MS8607Component : public PollingComponent, public i2c::I2CDevice {
|
||||
class MS8607Component final : public PollingComponent, public i2c::I2CDevice {
|
||||
public:
|
||||
virtual ~MS8607Component() = default;
|
||||
~MS8607Component() = default;
|
||||
void setup() override;
|
||||
void update() override;
|
||||
void dump_config() override;
|
||||
|
||||
Reference in New Issue
Block a user