From f9aa4681fa07a28cd5b9d63e697d76cff0faf4e6 Mon Sep 17 00:00:00 2001 From: Rich Bayliss Date: Wed, 24 Jul 2019 15:33:28 +0100 Subject: [PATCH] api: Perform network checks if device is unmanaged Without these checks the API GET /v1/device doesn't return a value for `ip_address`. Change-type: patch Signed-off-by: Rich Bayliss --- src/device-state.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/src/device-state.coffee b/src/device-state.coffee index b70aef28..fb0350c0 100644 --- a/src/device-state.coffee +++ b/src/device-state.coffee @@ -307,7 +307,6 @@ module.exports = class DeviceState extends EventEmitter @triggerApplyTarget({ initial: true }) initNetworkChecks: ({ apiEndpoint, connectivityCheckEnabled, unmanaged }) => - return if unmanaged network.startConnectivityCheck apiEndpoint, connectivityCheckEnabled, (connected) => @connected = connected @config.on 'change', (changedConfig) ->