From ac74b25c46869295b086deaed88091bb29c3979b Mon Sep 17 00:00:00 2001 From: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com> Date: Tue, 20 May 2025 13:19:24 +1000 Subject: [PATCH 1/3] Fix #ifdefs (#8853) --- esphome/components/debug/debug_component.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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_{}; From 220a14e1f82b727867c5d8f7801d36e5522374b9 Mon Sep 17 00:00:00 2001 From: Gustavo Ambrozio Date: Mon, 19 May 2025 21:36:44 -1000 Subject: [PATCH 2/3] [at581x] Fix issue with methods not being public (#8852) --- esphome/components/at581x/at581x.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */ From 25bbc0c22166a9de7b153aabcf752d28a756d508 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 21 May 2025 10:05:54 +1200 Subject: [PATCH 3/3] Bump version to 2025.5.0b5 --- Doxyfile | 2 +- esphome/const.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/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 = (