Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Feb 5, 2025
1 parent 65b0596 commit 89b9177
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/nuki_lock/nuki_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ bool NukiLockComponent::valid_keypad_code(int code) {
return code_valid;
}

void NukiLockComponent::add_keypad_entry(std::string name, int code) {
void NukiLockComponent::add_keypad_entry(std::string name, int32_t code) {
if (!keypad_paired_) {
ESP_LOGE(TAG, "keypad is not paired to Nuki");
return;
Expand All @@ -1252,7 +1252,7 @@ void NukiLockComponent::add_keypad_entry(std::string name, int code) {
}
}

void NukiLockComponent::update_keypad_entry(int id, std::string name, int code, bool enabled) {
void NukiLockComponent::update_keypad_entry(int32_t id, std::string name, int32_t code, bool enabled) {
if (!keypad_paired_) {
ESP_LOGE(TAG, "keypad is not paired to Nuki");
return;
Expand All @@ -1278,7 +1278,7 @@ void NukiLockComponent::update_keypad_entry(int id, std::string name, int code,
}
}

void NukiLockComponent::delete_keypad_entry(int id) {
void NukiLockComponent::delete_keypad_entry(int32_t id) {
if (!keypad_paired_) {
ESP_LOGE(TAG, "keypad is not paired to Nuki");
return;
Expand Down
2 changes: 1 addition & 1 deletion components/nuki_lock/nuki_lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct NukiLockSettings
};

#ifdef USE_API
class NukiLockComponent : public lock::Lock, public PollingComponent, public Nuki::SmartlockEventHandler, public esphome::api::CustomAPIDevice
class NukiLockComponent : public lock::Lock, public PollingComponent, public Nuki::SmartlockEventHandler, public api::CustomAPIDevice
#else
class NukiLockComponent : public lock::Lock, public PollingComponent, public Nuki::SmartlockEventHandler
#endif
Expand Down

0 comments on commit 89b9177

Please sign in to comment.