mirror of
https://github.com/esphome/esphome.git
synced 2025-09-28 16:12:24 +01:00
Disable dependency finder on ESP32 (#2435)
This commit is contained in:
@@ -10,7 +10,7 @@ from esphome.const import (
|
||||
CONF_SPI_ID,
|
||||
CONF_CS_PIN,
|
||||
)
|
||||
from esphome.core import coroutine_with_priority
|
||||
from esphome.core import coroutine_with_priority, CORE
|
||||
|
||||
CODEOWNERS = ["@esphome/core"]
|
||||
spi_ns = cg.esphome_ns.namespace("spi")
|
||||
@@ -46,6 +46,9 @@ async def to_code(config):
|
||||
mosi = await cg.gpio_pin_expression(config[CONF_MOSI_PIN])
|
||||
cg.add(var.set_mosi(mosi))
|
||||
|
||||
if CORE.is_esp32:
|
||||
cg.add_library("SPI", None)
|
||||
|
||||
|
||||
def spi_device_schema(cs_pin_required=True):
|
||||
"""Create a schema for an SPI device.
|
||||
|
Reference in New Issue
Block a user