fsievers22 / esphome-ble-remote

ESPHome external component for a BLE HID client
MIT License
26 stars 13 forks source link

Fix sensor.h dependency issue #27

Closed lufton closed 2 weeks ago

lufton commented 3 weeks ago

When you try to compile the project it is not including sensor.h file requested in ble_client_hid.cpp:

In file included from src/esphome/components/ble_client_hid/ble_client_hid.cpp:1:
src/esphome/components/ble_client_hid/ble_client_hid.h:4:10: fatal error: esphome/components/sensor/sensor.h: No such file or directory
 #include "esphome/components/sensor/sensor.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pioenvs\backpack-light\src\esphome\components\ble_client_hid\ble_client_hid.o] Error 1

Use AUTO_LOAD to specify witch components sources should be included in output directory.