diff --git a/esphome/components/camera/__init__.py b/esphome/components/camera/__init__.py index 34442c9b91..232acf6241 100644 --- a/esphome/components/camera/__init__.py +++ b/esphome/components/camera/__init__.py @@ -24,7 +24,7 @@ CameraStreamStopTrigger = camera_ns.class_( automation.Trigger.template(), ) -CONFIG_SCHEMA = cv.Schema( +CAMERA_SCHEMA = cv.Schema( { cv.Optional(CONF_ON_STREAM_START): automation.validate_automation( { diff --git a/esphome/components/esp32_camera/__init__.py b/esphome/components/esp32_camera/__init__.py index 4275e6ffd9..66af0bc61b 100644 --- a/esphome/components/esp32_camera/__init__.py +++ b/esphome/components/esp32_camera/__init__.py @@ -203,7 +203,7 @@ CONFIG_SCHEMA = ( } ) .extend(cv.COMPONENT_SCHEMA) - .extend(camera.CONFIG_SCHEMA) + .extend(camera.CAMERA_SCHEMA) ) SETTERS = {