Skip to content

Commit

Permalink
Fix compilation for recent ESPHome (#68)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
syssi authored Jun 12, 2023
1 parent 1a1cf08 commit a5fb623
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 98 deletions.
7 changes: 0 additions & 7 deletions yeelight_light_ceil26.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_ceil29.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_ceilb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_ceilc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_ceiling10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_ceiling11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_ceiling15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_ceiling20.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_ceiling22.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_fancl5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,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

external_components:
- source: ${external_components_source}
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_lamp9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeelight_light_strip6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,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

wifi:
ssid: !secret wifi_ssid
Expand Down
7 changes: 0 additions & 7 deletions yeerc_ylyk01yl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,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

external_components:
- source: ${external_components_source}
Expand Down
7 changes: 0 additions & 7 deletions yeerc_ylyk01yl_fancl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,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

external_components:
- source: ${external_components_source}
Expand Down

0 comments on commit a5fb623

Please sign in to comment.