diff --git a/Doxyfile b/Doxyfile index f0c0d9590c..0ef0dea557 100644 --- a/Doxyfile +++ b/Doxyfile @@ -48,7 +48,7 @@ PROJECT_NAME = ESPHome # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 2025.5.0b4 +PROJECT_NUMBER = 2025.5.0b5 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/esphome/components/at581x/at581x.h b/esphome/components/at581x/at581x.h index 6c637d08c5..558a5c8b19 100644 --- a/esphome/components/at581x/at581x.h +++ b/esphome/components/at581x/at581x.h @@ -14,11 +14,8 @@ namespace esphome { namespace at581x { class AT581XComponent : public Component, public i2c::I2CDevice { -#ifdef USE_SWITCH - protected: - switch_::Switch *rf_power_switch_{nullptr}; - public: +#ifdef USE_SWITCH void set_rf_power_switch(switch_::Switch *s) { this->rf_power_switch_ = s; s->turn_on(); @@ -48,6 +45,9 @@ class AT581XComponent : public Component, public i2c::I2CDevice { bool i2c_read_reg(uint8_t addr, uint8_t &data); protected: +#ifdef USE_SWITCH + switch_::Switch *rf_power_switch_{nullptr}; +#endif int freq_; int self_check_time_ms_; /*!< Power-on self-test time, range: 0 ~ 65536 ms */ int protect_time_ms_; /*!< Protection time, recommended 1000 ms */ diff --git a/esphome/components/debug/debug_component.h b/esphome/components/debug/debug_component.h index a55cc7bf44..50d26ad2ea 100644 --- a/esphome/components/debug/debug_component.h +++ b/esphome/components/debug/debug_component.h @@ -34,13 +34,15 @@ class DebugComponent : public PollingComponent { #endif void set_loop_time_sensor(sensor::Sensor *loop_time_sensor) { loop_time_sensor_ = loop_time_sensor; } #ifdef USE_ESP32 - void on_shutdown() override; void set_psram_sensor(sensor::Sensor *psram_sensor) { this->psram_sensor_ = psram_sensor; } #endif // USE_ESP32 void set_cpu_frequency_sensor(sensor::Sensor *cpu_frequency_sensor) { this->cpu_frequency_sensor_ = cpu_frequency_sensor; } #endif // USE_SENSOR +#ifdef USE_ESP32 + void on_shutdown() override; +#endif // USE_ESP32 protected: uint32_t free_heap_{}; diff --git a/esphome/const.py b/esphome/const.py index 10177cd98f..273028fa1f 100644 --- a/esphome/const.py +++ b/esphome/const.py @@ -1,6 +1,6 @@ """Constants used by esphome.""" -__version__ = "2025.5.0b4" +__version__ = "2025.5.0b5" ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_" VALID_SUBSTITUTIONS_CHARACTERS = (