mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix esp32 no longer has Hash internal lib (#2441)
This commit is contained in:
		| @@ -102,7 +102,6 @@ async def to_code(config): | ||||
|         cg.add_library("Update", None) | ||||
|     elif CORE.is_esp32 and CORE.using_arduino: | ||||
|         cg.add_library("Update", None) | ||||
|         cg.add_library("Hash", None) | ||||
|  | ||||
|     use_state_callback = False | ||||
|     for conf in config.get(CONF_ON_STATE_CHANGE, []): | ||||
|   | ||||
| @@ -342,6 +342,8 @@ async def to_code(config): | ||||
|  | ||||
|     if CORE.is_esp8266: | ||||
|         cg.add_library("ESP8266WiFi", None) | ||||
|     elif CORE.is_esp32 and CORE.using_arduino: | ||||
|         cg.add_library("WiFi", None) | ||||
|  | ||||
|     cg.add_define("USE_WIFI") | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user