diff --git a/core/class/zwavejs.class.php b/core/class/zwavejs.class.php index 159d8e47..3a3046f2 100644 --- a/core/class/zwavejs.class.php +++ b/core/class/zwavejs.class.php @@ -287,34 +287,11 @@ public static function postConfig_zwavejs_mode($_value) { } public static function additionnalDependancyCheck() { - if (config::byKey('zwavejs::mode', 'zwavejs') == 'distant') { - $return = array(); - $return['state'] = 'ok'; - return $return; - } - $return = array(); - $return['state'] = 'ok'; - if (config::byKey('lastDependancyInstallTime', __CLASS__) == '') { - $return['state'] = 'nok'; - } else if (!file_exists(__DIR__ . '/../../resources/zwave-js-ui/node_modules')) { - $return['state'] = 'nok'; - } - return $return; - } - - public static function dependancy_info() { - if (config::byKey('zwavejs::mode', 'zwavejs') == 'distant') { - $return = array(); - $return['state'] = 'ok'; - return $return; - } $return = array(); - $return['progress_file'] = jeedom::getTmpFolder(__CLASS__) . '/dependance'; - $return['state'] = 'ok'; - if (config::byKey('lastDependancyInstallTime', __CLASS__) == '') { - $return['state'] = 'nok'; - } else if (!file_exists(__DIR__ . '/../../resources/zwave-js-ui/node_modules')) { - $return['state'] = 'nok'; + if (config::byKey('zwavejs::mode', __CLASS__) === 'local') { + if (!file_exists(__DIR__ . '/../../resources/zwave-js-ui/node_modules')) { + $return['state'] = 'nok'; + } } return $return; }