Fix max value for autoLockTimeOut (#459)

* Fix max value for autoLockTimeOut

* Fix the autoLockTimeOut max value in NukiWrapper.cpp
This commit is contained in:
Julien Ehrhart
2024-08-20 22:12:14 +02:00
committed by GitHub
parent c4ca957adf
commit 618591e65e
3 changed files with 3 additions and 3 deletions

View File

@@ -1621,7 +1621,7 @@ void NukiWrapper::onConfigUpdateReceived(const char *value)
{
const uint8_t keyvalue = atoi(jsonchar);
if(keyvalue >= 30 && keyvalue <= 180)
if(keyvalue >= 30 && keyvalue <= 1800)
{
if(_nukiAdvancedConfig.autoLockTimeOut == keyvalue) jsonResult[advancedKeys[j]] = "unchanged";
else cmdResult = _nukiLock.setAutoLockTimeOut(keyvalue);