Skip to content

Commit

Permalink
Fix States
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Apr 4, 2024
1 parent a619530 commit 6f57547
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/nuki_lock/nuki_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ namespace esphome
case NukiLock::LockState::Locked:
return lock::LOCK_STATE_LOCKED;
case NukiLock::LockState::Unlocked:
case NukiLock::LockState::Unlatched:
return lock::LOCK_STATE_UNLOCKED;
case NukiLock::LockState::MotorBlocked:
return lock::LOCK_STATE_JAMMED;
case NukiLock::LockState::Locking:
return lock::LOCK_STATE_LOCKING;
case NukiLock::LockState::Unlocking:
case NukiLock::LockState::Unlatching:
return lock::LOCK_STATE_UNLOCKING;
default:
return lock::LOCK_STATE_NONE;
Expand Down

0 comments on commit 6f57547

Please sign in to comment.