1
0
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:
Stefan Agner
2021-10-03 21:53:40 +02:00
committed by GitHub
parent cee08debff
commit 1627dff166
10 changed files with 35 additions and 6 deletions

View File

@@ -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.