From 6c704ce5653d0455d0b8923cf55c50709543ed78 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Tue, 9 May 2023 11:02:21 +0200 Subject: [PATCH] Fix compilation for recent ESPHome Compile issues with recent ESPHome versions fixed: - An error about toolchain-riscv32-esp not being found (the PlatformIO tool manager tries to install this one, even though the lamp is an ESP32 device and not riscv). - On systems for which the above toolchain could be found, compilation would fail with an error about `esp_mac.h` not being found. --- CHANGELOG.md | 6 ++++++ packages/core.yaml | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e4feb6..7577221 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [next release] ### Fixed +- Compile issues with recent ESPHome versions fixed: + - An error about toolchain-riscv32-esp not being found (the PlatformIO tool manager + tries to install this one, even though the lamp is an ESP32 device and not riscv). + - On systems for which the above toolchain could be found, compilation would fail + with an error about `esp_mac.h` not being found. + - ESPHome's compile-time warnings about "GPIO is a Strapping PIN and should be avoided" are now being suppressed. These warning are often interpreted by users of this firmware as problems. However, the pinouts are dictated by diff --git a/packages/core.yaml b/packages/core.yaml index dc19024..93e2839 100644 --- a/packages/core.yaml +++ b/packages/core.yaml @@ -25,13 +25,6 @@ esp32: CONFIG_FREERTOS_UNICORE: y advanced: ignore_efuse_mac_crc: true - # Bugfix for ESPHome 2022.12.0 and up: fallback to older platform - # version, to prevent bricked devices. ESPHome uses newer versions - # by default. - # See also: https://github.com/mmakaay/esphome-xiaomi_bslamp2/issues/104 - version: 4.3.2 - source: ~3.40302.0 - platform_version: platformio/espressif32 @ 3.5.0 # Retrieve the code for the xiaomi_bslamp2 platform from GitHub. external_components: