Fix ESP8266 OTA adds unnecessary Update library (#2579)

This commit is contained in:
Otto Winter 2021-10-21 14:20:57 +02:00 committed by Otto winter
parent e7baa42e63
commit 7b8d826704
No known key found for this signature in database
GPG key ID: 48ED2DDB96D7682C

View file

@ -90,9 +90,7 @@ async def to_code(config):
) )
cg.add(RawExpression(f"if ({condition}) return")) cg.add(RawExpression(f"if ({condition}) return"))
if CORE.is_esp8266: if CORE.is_esp32 and CORE.using_arduino:
cg.add_library("Update", None)
elif CORE.is_esp32 and CORE.using_arduino:
cg.add_library("Update", None) cg.add_library("Update", None)
use_state_callback = False use_state_callback = False