Skip to content

Commit 84c0d46

Browse files
committed
fix: LockState is in lock:: namespace
1 parent ddbc8ba commit 84c0d46

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

components/homekit/lock.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,9 @@ void LockEntity::setup() {
412412
std::to_string(ptrToLock->get_object_id_hash()).c_str()));
413413
if (!ptrToLock->is_internal())
414414
#if ESPHOME_VERSION_CODE >= VERSION_CODE(2026, 4, 0)
415-
ptrToLock->add_on_state_callback(
416-
[this](LockState /* state */) { LockEntity::on_lock_update(ptrToLock); });
415+
ptrToLock->add_on_state_callback([this](lock::LockState /* state */) {
416+
LockEntity::on_lock_update(ptrToLock);
417+
});
417418
#else
418419
ptrToLock->add_on_state_callback(
419420
[this]() { LockEntity::on_lock_update(ptrToLock); });

0 commit comments

Comments
 (0)