Skip to content

Commit

Permalink
fix general wes
Browse files Browse the repository at this point in the history
  • Loading branch information
rocket13011 committed Jul 1, 2020
1 parent 20a0eb9 commit 9b2d556
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions plugin_info/install.php
Expand Up @@ -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)){
Expand Down

0 comments on commit 9b2d556

Please sign in to comment.