From 9556f3dd7a6da272f354d5d695b6c4a802e93c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= <1536036+zoic21@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:34:42 +0100 Subject: [PATCH] same --- core/class/zwavejs.class.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/class/zwavejs.class.php b/core/class/zwavejs.class.php index c25eaa7..1d9db87 100644 --- a/core/class/zwavejs.class.php +++ b/core/class/zwavejs.class.php @@ -276,6 +276,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__) == '') { @@ -287,6 +292,11 @@ public static function additionnalDependancyCheck() { } 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'; @@ -305,7 +315,7 @@ public static function deamon_info() { $return['launchable'] = 'ok'; $return['state'] = 'ok'; return $return; - } + } $return = array(); $return['log'] = __CLASS__; $return['launchable'] = 'ok';