Skip to content

Commit

Permalink
Update thermostat.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Nov 9, 2023
1 parent a0a6f1d commit 6b81480
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/class/thermostat.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,10 @@ public function stopThermostat($_repeat = false, $_suspend = false) {
log::add(__CLASS__, 'error', $this->getHumanName() . ' ' . __('Erreur lors de l\'exécution de', __FILE__) . ' ' . $action['cmd'] . '. ' . __('Détails', __FILE__) . ' : ' . $e->getMessage());
}
}
$power = $this->getCmd(null, 'power');
if (is_object($power)) {
$power->event(0);
}
if ($_repeat) {
return;
}
Expand All @@ -1606,10 +1610,6 @@ public function stopThermostat($_repeat = false, $_suspend = false) {
}
$this->save();
$this->getCmd(null, 'actif')->event(0);
$power = $this->getCmd(null, 'power');
if (is_object($power)) {
$power->event(0);
}
}

public function orderChange() {
Expand Down

0 comments on commit 6b81480

Please sign in to comment.