Skip to content

Commit

Permalink
checking macro to include/exclude lock component
Browse files Browse the repository at this point in the history
should fix #15
  • Loading branch information
rednblkx committed Aug 26, 2024
1 parent b210ae6 commit dc6574d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/homekit/HAPAccessory.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once
#include <esp_log.h>
#include <esphome/core/log.h>
#include <esphome/core/defines.h>
#include <esphome/core/component.h>
#include "const.h"
Expand Down
5 changes: 4 additions & 1 deletion components/homekit/lock.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <esphome/core/defines.h>
#ifdef USE_LOCK
#include "lock.h"

namespace esphome
Expand Down Expand Up @@ -353,4 +355,5 @@ namespace esphome
ESP_LOGI(TAG, "Lock '%s' linked to HomeKit", accessory_name.c_str());
}
}
}
}
#endif

0 comments on commit dc6574d

Please sign in to comment.