Pb plugin delestage

J’ai trouvé aussi quelques erreurs dans listener_execution que j’ai fixé avec mes doigts.
je donne les lignes de patch à tout hasard. Soyez compréhensifs, j’ai pas fait de php depuis 16 ans :slight_smile:

146c144
<               if(is_array($action) && $action['action'] == 'continue'){
---
>               if($action['action'] == 'continue'){
154,158d151
<               if (!is_array($stoppedThermostats)){
<                       log::add('delestage', 'info', $this->getHumanName() . 'Aucun thermostat stoppé !');
<                       return;
<               }
160,162c153
<                       log::add('delestage', 'debug', 'stopSmart Thermostat:' . $thermostatId);
<                       $calcul = $this->calculDiff($thermostatId);
<                       log::add('delestage', 'debug', 'stopSmart Thermostat:' . $thermostatId . ' calcul: ' . $calcul);
---
>                       $calcul = $this->calculDiff($thermostatId);
173,176d163
<               if(!is_array($diff)){
<                       log::add('delestage', 'info', $this->getHumanName() . 'Aucun thermostat a réactiver !');
<                       return;
<               }