mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Add BK72xx support to require_framework_version() (#7409)
This commit is contained in:
		| @@ -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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user