mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[openthermgateway] transition bridge state via offline to online (#12744)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
parent
bab8e98796
commit
7dae2b01ec
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user