With the update to ESPHome greater 2024.06, some of my devices couldn’t be updated as they showed the following error:

1
'ota' requires a 'platform' key but it was not specified.

The solution was to edit the config file where i originally had a section like this:

1
2
ota:
  password: !secret esphome_ota_password

Which, since the merge of a specific PR  into 2024.06 has to look like that (also described here ):

1
2
3
ota:
  - platform: esphome
    password: !secret esphome_ota_password

And now it all worked again ;-)