mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 06:58:11 +01:00
add missing overrides (#7231)
This commit is contained in:
parent
a47a17d7e7
commit
b43c5b851a
4 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@ class LVGLNumber : public number::Number {
|
|||
}
|
||||
|
||||
protected:
|
||||
void control(float value) {
|
||||
void control(float value) override {
|
||||
if (this->control_lambda_ != nullptr)
|
||||
this->control_lambda_(value);
|
||||
else
|
||||
|
|
|
@ -19,7 +19,7 @@ class LVGLSwitch : public switch_::Switch {
|
|||
}
|
||||
|
||||
protected:
|
||||
void write_state(bool value) {
|
||||
void write_state(bool value) override {
|
||||
if (this->state_lambda_ != nullptr)
|
||||
this->state_lambda_(value);
|
||||
else
|
||||
|
|
|
@ -19,7 +19,7 @@ class LVGLText : public text::Text {
|
|||
}
|
||||
|
||||
protected:
|
||||
void control(const std::string &value) {
|
||||
void control(const std::string &value) override {
|
||||
if (this->control_lambda_ != nullptr)
|
||||
this->control_lambda_(value);
|
||||
else
|
||||
|
|
|
@ -13,7 +13,7 @@ class SpiLedStrip : public light::AddressableLight,
|
|||
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_TRAILING,
|
||||
spi::DATA_RATE_1MHZ> {
|
||||
public:
|
||||
void setup() { this->spi_setup(); }
|
||||
void setup() override { this->spi_setup(); }
|
||||
|
||||
int32_t size() const override { return this->num_leds_; }
|
||||
|
||||
|
@ -43,7 +43,7 @@ class SpiLedStrip : public light::AddressableLight,
|
|||
memset(this->buf_, 0, 4);
|
||||
}
|
||||
|
||||
void dump_config() {
|
||||
void dump_config() override {
|
||||
esph_log_config(TAG, "SPI LED Strip:");
|
||||
esph_log_config(TAG, " LEDs: %d", this->num_leds_);
|
||||
if (this->data_rate_ >= spi::DATA_RATE_1MHZ)
|
||||
|
|
Loading…
Reference in a new issue