Esp32 camera not updating

The last update will not install. The error code I receive is this:
“Please remove the platform key from the [esphome] block and use the correct platform component. This style of configuration has now been removed.
platform: Esp32
board: esp32dev”
I’ve tried esp32, esp32_camera, and esp32_dev without success. Here is where the code is laid out:

esphome:
name: esp32-cam
platform: esp32
board: esp32dev

Enable logging

logger:

At the beginning of the yaml.

I don’t know what has changed and what I need to add/remove to make it work.

Marc

you will need something like:

esp32:
  board: esp32dev

and remove the:

   platform: esp32
   board: esp32dev

from:

esphome:
    name: esp32-cam
    platform: esp32
    board: esp32dev

so its just like:

esphome:
    name: esp32-cam
esp32:
  board: esp32dev