Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes
Browse files Browse the repository at this point in the history
AzonInc committed Oct 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 335e922 commit 03596de
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/nuki_lock/nuki_lock.cpp
Original file line number Diff line number Diff line change
@@ -97,15 +97,15 @@ std::string NukiLockComponent::fob_action_to_string(uint8_t action)
if(action == 2) return "Lock";
if(action == 3) return "Lock n Go";
if(action == 4) return "Intelligent";
return 99;
return "No Action";
}

void NukiLockComponent::update_status()
{
this->status_update_ = false;
Nuki::CmdResult cmd_result = this->nuki_lock_.requestKeyTurnerState(&(this->retrieved_key_turner_state_));
char cmdResultAsString[30];
NukiLock::cmdResultToString(cmdResult, cmdResultAsString);
NukiLock::cmdResultToString(cmd_result, cmdResultAsString);

if (cmd_result == Nuki::CmdResult::Success) {
this->status_update_consecutive_errors_ = 0;
2 changes: 1 addition & 1 deletion components/nuki_lock/nuki_lock.h
Original file line number Diff line number Diff line change
@@ -125,7 +125,7 @@ class NukiLockComponent : public lock::Lock, public PollingComponent, public api
std::string nuki_doorsensor_to_string(Nuki::DoorSensorState nukiDoorSensorState);

uint8_t fob_action_to_int(std::string str);
std::string fob_action_to_string(uint_8_t action);
std::string fob_action_to_string(uint8_t action);

NukiLock::ButtonPressAction nuki_button_press_action_to_enum(std::string str);
const char* nuki_button_press_action_to_string(NukiLock::ButtonPressAction action);

0 comments on commit 03596de

Please sign in to comment.