Sleep time of CP Plus is ~60seconds allow 90 seconds before reporting an issue. Fix #7
This commit is contained in:
parent
6bd9e9b65b
commit
ccb7b956f8
@ -12,7 +12,7 @@ void TrumaCpPlusBinarySensor::update() {
|
|||||||
this->publish_state(false);
|
this->publish_state(false);
|
||||||
return;
|
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);
|
this->publish_state(micros() < timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user