Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Sep 30, 2024
1 parent 345f2b0 commit a828251
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/thermostat.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public static function temporal($_options) {
$delta = $delta / 2;
}
$consigne = $thermostat->getCmd(null, 'order')->execCmd();
$temporal_data = $thermostat->calculTemporalData(intval($consigne) - $delta);
$temporal_data = $thermostat->calculTemporalData(floatval($consigne) - $delta);
if ($temporal_data['power'] > 0 && $delta > 0) {
log::add(__CLASS__, 'debug', $thermostat->getHumanName() . ' ' . __('Power > 0 et delta consigne > 0', __FILE__) . ' (' . $delta . '), ' . __('je relance le calcul avec consigne + delta/2', __FILE__));
$temporal_data = $thermostat->calculTemporalData($consigne + $delta);
Expand Down
1 change: 1 addition & 0 deletions docs/fr_FR/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
>Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte
- Support des images d'équipement personnalisées (Jeedom 4.5)
- Correction d'un bug sur le support des consignes decimal

# 22/07/2024

Expand Down

0 comments on commit a828251

Please sign in to comment.