diff --git a/components/nuki_lock/nuki_lock.cpp b/components/nuki_lock/nuki_lock.cpp index 9f03e2e..149b84f 100644 --- a/components/nuki_lock/nuki_lock.cpp +++ b/components/nuki_lock/nuki_lock.cpp @@ -270,7 +270,7 @@ void NukiLockComponent::update_auth_data() for(const auto& entry : authEntries) { ESP_LOGD(TAG, "Authorization entry[%d] type: %d name: %s", entry.authId, entry.idType, entry.name); - this->auth_entries_[entry.authId] = entry.name.c_str(); + this->auth_entries_[entry.authId] = std::string(reinterpret_cast(entry.name)); } }