Update src/NukiNetwork.cpp

Co-authored-by: David Girón <contacto@duhowpi.net>
This commit is contained in:
iranl
2024-10-15 17:17:18 +02:00
committed by GitHub
parent 76e9767840
commit 03d6baf389

View File

@@ -881,7 +881,7 @@ void NukiNetwork::publishHASSConfig(char* deviceType, const char* baseTopic, cha
uint32_t aclPrefs[17];
_preferences->getBytes(preference_acl, &aclPrefs, sizeof(aclPrefs));
` if((strcmp(deviceType, "SmartLock") != 0 && (int)aclPrefs[2]) || (strcmp(deviceType, "SmartLock") == 0 && (int)aclPrefs[11]))
if((strcmp(deviceType, "SmartLock") != 0 && (int)aclPrefs[2]) || (strcmp(deviceType, "SmartLock") == 0 && (int)aclPrefs[11]))
{
json["pl_open"] = openAction;
}