[openthermgateway] transition bridge state via offline to online (#12744)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
Andrew Fiddian-Green 2022-05-15 17:56:34 +01:00 committed by GitHub
parent bab8e98796
commit 7dae2b01ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,13 +237,14 @@ public class OpenThermGatewayHandler extends BaseBridgeHandler implements OpenTh
}
private void disconnect() {
@Nullable
OpenThermGatewayConnector conn = connector;
updateStatus(ThingStatus.OFFLINE);
autoReconnect = false;
cancelAutoReconnect();
@Nullable
OpenThermGatewayConnector conn = connector;
if (conn != null) {
conn.stop();
connector = null;