diff --git a/components/homekit/HAPAccessory.h b/components/homekit/HAPAccessory.h index 4de8041..229f1a1 100644 --- a/components/homekit/HAPAccessory.h +++ b/components/homekit/HAPAccessory.h @@ -1,5 +1,6 @@ #pragma once #include +#include #include #include #include "const.h" diff --git a/components/homekit/lock.cpp b/components/homekit/lock.cpp index aacc020..5baf674 100644 --- a/components/homekit/lock.cpp +++ b/components/homekit/lock.cpp @@ -1,3 +1,5 @@ +#include +#ifdef USE_LOCK #include "lock.h" namespace esphome @@ -353,4 +355,5 @@ namespace esphome ESP_LOGI(TAG, "Lock '%s' linked to HomeKit", accessory_name.c_str()); } } -} \ No newline at end of file +} +#endif \ No newline at end of file