dhewg / esphome-miot

ESPHome components for MIoT devices
Other
16 stars 8 forks source link

Compile error #23

Open moto25 opened 1 week ago

moto25 commented 1 week ago

Hi, since ESPHome 2024.6.0 are OTA changes. When setting

ota:

got compile error:

src/esphome/components/miot/miot.cpp:18:10: fatal error: esphome/components/ota/ota_component.h: No such file or directory

include "esphome/components/ota/ota_component.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. *** [.pioenvs/mi-gbr/src/esphome/components/miot/miot.o] Error 1

any idea? thank you

scrampker commented 6 days ago

This is a change to ESPHome. You would update that section to:

ota:
  platform: esphome

That being said, I'm still getting the following afterwards, which means the actual libraries need to be updated: image

pchmura4 commented 5 days ago

Hi, I was also having this issue, therefore instead of waiting I fixed it myself. The pull request has been created, but during the time you can use my fork to check if it's working source: github://pchmura4/esphome-miot@main Just please bear in mind I will not be updating this anytime soon 😅