mirror of
https://github.com/esphome/esphome.git
synced 2025-09-10 15:22:24 +01:00
Implement proper API connection teardown before deep sleep/reboot (#9008)
This commit is contained in:
@@ -275,7 +275,8 @@ DisconnectResponse APIConnection::disconnect(const DisconnectRequest &msg) {
|
||||
return resp;
|
||||
}
|
||||
void APIConnection::on_disconnect_response(const DisconnectResponse &value) {
|
||||
// pass
|
||||
this->helper_->close();
|
||||
this->remove_ = true;
|
||||
}
|
||||
|
||||
#ifdef USE_BINARY_SENSOR
|
||||
|
Reference in New Issue
Block a user