remove PresenceDetection code

This commit is contained in:
technyon
2024-08-18 09:42:30 +02:00
parent a30b0355eb
commit 3bdb30e998
9 changed files with 5 additions and 357 deletions

View File

@@ -51,6 +51,8 @@ NukiWrapper::~NukiWrapper()
void NukiWrapper::initialize(const bool& firstStart)
{
_preferences->remove(preference_presence_detection_timeout);
_nukiLock.initialize();
esp_power_level_t powerLevel;
@@ -134,9 +136,6 @@ void NukiWrapper::initialize(const bool& firstStart)
_preferences->putInt(preference_query_interval_configuration, 3600);
_preferences->putInt(preference_query_interval_battery, 1800);
_preferences->putInt(preference_query_interval_keypad, 1800);
#if PRESENCE_DETECTION_ENABLED
_preferences->putInt(preference_presence_detection_timeout, -1);
#endif
}
if(_nrOfRetries < 0 || _nrOfRetries == 200)