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 eac4ce4 commit 17dc0e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/class/thermostat.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1602,14 +1602,15 @@ public function stopThermostat($_repeat = false, $_suspend = false) {
if (is_object($power)) {
$power->event(0);
}
if ($_repeat) {
return;
}
$this->getCmd(null, 'actif')->event(0);

if (!$_suspend) {
$this->getCmd(null, 'status')->event(__('Arrêté', __FILE__));
}
if ($_repeat) {
return;
}
$this->save();
$this->getCmd(null, 'actif')->event(0);
}

public function orderChange() {
Expand Down

0 comments on commit 17dc0e6

Please sign in to comment.