mirror of
https://github.com/esphome/esphome.git
synced 2024-12-27 17:28:01 +01:00
Fix ESP8266 OTA adds unnecessary Update library (#2579)
This commit is contained in:
parent
e7baa42e63
commit
7b8d826704
@ -90,9 +90,7 @@ async def to_code(config):
|
||||
)
|
||||
cg.add(RawExpression(f"if ({condition}) return"))
|
||||
|
||||
if CORE.is_esp8266:
|
||||
cg.add_library("Update", None)
|
||||
elif CORE.is_esp32 and CORE.using_arduino:
|
||||
if CORE.is_esp32 and CORE.using_arduino:
|
||||
cg.add_library("Update", None)
|
||||
|
||||
use_state_callback = False
|
||||
|
Loading…
Reference in New Issue
Block a user