From 9b2d556494d7388dd0d112d4f729a040ee7f599c Mon Sep 17 00:00:00 2001 From: Rocket13011 Date: Wed, 1 Jul 2020 14:36:41 +0200 Subject: [PATCH] fix general wes --- plugin_info/install.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugin_info/install.php b/plugin_info/install.php index 12e632d..bccdeba 100644 --- a/plugin_info/install.php +++ b/plugin_info/install.php @@ -42,6 +42,18 @@ function wes_update() { $relais = eqLogic::byType('wes_relai'); $teleinfos = eqLogic::byType('wes_teleinfo'); $temperatures = eqLogic::byType('wes_temperature'); + $wess = eqLogic::byType('wes'); + + foreach ($wess as $wes){ + if(isObject($wes)){ + $wes->setEqType_name('wes'); + if($wes-getConfiguration('type') == null || $wes-getConfiguration('type') == ""){ + $wes->setConfiguration('type','general'); + } + $wes->save(); + } + } + foreach ($analogiques as $analogique){ if(isObject($analogique)){