Fix max value for autoLockTimeOut (#459)
* Fix max value for autoLockTimeOut * Fix the autoLockTimeOut max value in NukiWrapper.cpp
This commit is contained in:
@@ -2154,7 +2154,7 @@ void NukiNetwork::publishHASSConfigAdditionalLockEntities(char *deviceType, cons
|
||||
{ (char*)"cmd_tpl", (char*)"{ \"autoLockTimeOut\": \"{{ value }}\" }" },
|
||||
{ (char*)"val_tpl", (char*)"{{value_json.autoLockTimeOut}}" },
|
||||
{ (char*)"min", (char*)"30" },
|
||||
{ (char*)"max", (char*)"180" }});
|
||||
{ (char*)"max", (char*)"1800" }});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user