diff --git a/esphome/core/gpio.h b/esphome/core/gpio.h index 0492c71792..bbbd8b8dc3 100644 --- a/esphome/core/gpio.h +++ b/esphome/core/gpio.h @@ -78,7 +78,7 @@ class NullPin : public GPIOPin { std::string dump_summary() const override { return {"Not used"}; } }; -static const GPIOPin *const NULL_PIN = new NullPin(); +static GPIOPin *const NULL_PIN = new NullPin(); // NOLINT(cppcoreguidelines-avoid-non-const-global-variables) /// Copy of GPIOPin that is safe to use from ISRs (with no virtual functions) class ISRInternalGPIOPin {