mirror of
https://github.com/esphome/esphome.git
synced 2024-11-15 11:38:11 +01:00
Avoid of additional Camera tag in config.
This commit is contained in:
parent
5fe02147b3
commit
0bcd9bd153
2 changed files with 11 additions and 12 deletions
|
@ -1,28 +1,27 @@
|
||||||
|
from esphome import automation, pins
|
||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
|
from esphome.components.esp32 import add_idf_component
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome import automation
|
|
||||||
from esphome import pins
|
|
||||||
from esphome.const import (
|
from esphome.const import (
|
||||||
|
CONF_BRIGHTNESS,
|
||||||
|
CONF_CONTRAST,
|
||||||
|
CONF_DATA_PINS,
|
||||||
CONF_FREQUENCY,
|
CONF_FREQUENCY,
|
||||||
CONF_ID,
|
CONF_ID,
|
||||||
CONF_PIN,
|
CONF_PIN,
|
||||||
CONF_SCL,
|
|
||||||
CONF_SDA,
|
|
||||||
CONF_DATA_PINS,
|
|
||||||
CONF_RESET_PIN,
|
CONF_RESET_PIN,
|
||||||
CONF_RESOLUTION,
|
CONF_RESOLUTION,
|
||||||
CONF_BRIGHTNESS,
|
CONF_SCL,
|
||||||
CONF_CONTRAST,
|
CONF_SDA,
|
||||||
CONF_TRIGGER_ID,
|
CONF_TRIGGER_ID,
|
||||||
CONF_VSYNC_PIN,
|
CONF_VSYNC_PIN,
|
||||||
)
|
)
|
||||||
from esphome.core import CORE
|
from esphome.core import CORE
|
||||||
from esphome.components.esp32 import add_idf_component
|
|
||||||
from esphome.cpp_helpers import setup_entity
|
from esphome.cpp_helpers import setup_entity
|
||||||
|
|
||||||
DEPENDENCIES = ["esp32"]
|
DEPENDENCIES = ["esp32"]
|
||||||
|
|
||||||
AUTO_LOAD = ["psram"]
|
AUTO_LOAD = ["psram", "camera"]
|
||||||
|
|
||||||
esp32_camera_ns = cg.esphome_ns.namespace("esp32_camera")
|
esp32_camera_ns = cg.esphome_ns.namespace("esp32_camera")
|
||||||
ESP32Camera = esp32_camera_ns.class_("ESP32Camera", cg.PollingComponent, cg.EntityBase)
|
ESP32Camera = esp32_camera_ns.class_("ESP32Camera", cg.PollingComponent, cg.EntityBase)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import esphome.config_validation as cv
|
|
||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
from esphome.const import CONF_ID, CONF_PORT, CONF_MODE
|
import esphome.config_validation as cv
|
||||||
|
from esphome.const import CONF_ID, CONF_MODE, CONF_PORT
|
||||||
|
|
||||||
CODEOWNERS = ["@ayufan"]
|
CODEOWNERS = ["@ayufan"]
|
||||||
DEPENDENCIES = ["camera"]
|
AUTO_LOAD = ["camera"]
|
||||||
MULTI_CONF = True
|
MULTI_CONF = True
|
||||||
|
|
||||||
esp32_camera_web_server_ns = cg.esphome_ns.namespace("esp32_camera_web_server")
|
esp32_camera_web_server_ns = cg.esphome_ns.namespace("esp32_camera_web_server")
|
||||||
|
|
Loading…
Reference in a new issue