Sleep time of CP Plus is ~60seconds allow 90 seconds before reporting an issue. Fix #7

This commit is contained in:
Your Name 2023-03-02 19:39:50 +01:00
parent 6bd9e9b65b
commit ccb7b956f8

View File

@ -12,7 +12,7 @@ void TrumaCpPlusBinarySensor::update() {
this->publish_state(false);
return;
}
auto timeout = this->parent_->get_last_cp_plus_request() + 30 * 1000 * 1000 /* 30 seconds*/;
const auto timeout = this->parent_->get_last_cp_plus_request() + 90 * 1000 * 1000 /* 90 seconds*/;
this->publish_state(micros() < timeout);
}