From 89b91776289a798d4b9d2f0e6bc013269a2943bf Mon Sep 17 00:00:00 2001 From: Florian Hess Date: Wed, 5 Feb 2025 17:47:46 +0100 Subject: [PATCH] Test --- components/nuki_lock/nuki_lock.cpp | 6 +++--- components/nuki_lock/nuki_lock.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/nuki_lock/nuki_lock.cpp b/components/nuki_lock/nuki_lock.cpp index 07e35ea..ac224c9 100644 --- a/components/nuki_lock/nuki_lock.cpp +++ b/components/nuki_lock/nuki_lock.cpp @@ -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; @@ -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; @@ -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; diff --git a/components/nuki_lock/nuki_lock.h b/components/nuki_lock/nuki_lock.h index 80c8447..18dd223 100644 --- a/components/nuki_lock/nuki_lock.h +++ b/components/nuki_lock/nuki_lock.h @@ -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