mirror of
https://github.com/esphome/esphome.git
synced 2024-12-03 22:38:47 +01:00
Add BK72xx support to require_framework_version() (#7409)
This commit is contained in:
parent
9f42b76de3
commit
d10feafa9b
@ -2045,6 +2045,7 @@ def require_framework_version(
|
||||
esp32_arduino=None,
|
||||
esp8266_arduino=None,
|
||||
rp2040_arduino=None,
|
||||
bk72xx_libretiny=None,
|
||||
host=None,
|
||||
max_version=False,
|
||||
extra_message=None,
|
||||
@ -2059,6 +2060,13 @@ def require_framework_version(
|
||||
msg += f". {extra_message}"
|
||||
raise Invalid(msg)
|
||||
required = esp_idf
|
||||
elif CORE.is_bk72xx and framework == "arduino":
|
||||
if bk72xx_libretiny is None:
|
||||
msg = "This feature is incompatible with BK72XX"
|
||||
if extra_message:
|
||||
msg += f". {extra_message}"
|
||||
raise Invalid(msg)
|
||||
required = bk72xx_libretiny
|
||||
elif CORE.is_esp32 and framework == "arduino":
|
||||
if esp32_arduino is None:
|
||||
msg = "This feature is incompatible with ESP32 using arduino framework"
|
||||
|
Loading…
Reference in New Issue
Block a user