mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Remove unneeded line (spi component adds it) (#3778)
This commit is contained in:
parent
219c5953f1
commit
614eb81ad7
1 changed files with 0 additions and 4 deletions
|
@ -2,7 +2,6 @@ import esphome.codegen as cg
|
|||
import esphome.config_validation as cv
|
||||
from esphome.components import spi
|
||||
from esphome.const import CONF_ID
|
||||
from esphome.core import CORE
|
||||
|
||||
DEPENDENCIES = ["spi"]
|
||||
AUTO_LOAD = ["sensor"]
|
||||
|
@ -24,6 +23,3 @@ async def to_code(config):
|
|||
var = cg.new_Pvariable(config[CONF_ID])
|
||||
await cg.register_component(var, config)
|
||||
await spi.register_spi_device(var, config)
|
||||
|
||||
if CORE.is_esp32:
|
||||
cg.add_library("SPI", None)
|
||||
|
|
Loading…
Reference in a new issue