Skip to content

Commit

Permalink
bugfix refresh cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Mar 18, 2024
1 parent 2620512 commit 0ec670c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/class/z2m.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ public static function convertXYToRGB($x, $y, $bri = 255) {
/* * *********************Methode d'instance************************* */

public function preSave(){
if($this->getType() == 'action' && $this->getSubType() != 'color'){
if($this->getType() == 'action' && $this->getSubType() != 'color' && $this->getLogicalId() != 'refresh'){
if(version_compare(jeedom::version(), '4.4.2') < 0){
$logicalId = $this->getConfiguration('logicalId',$this->getLogicalId());
}else{
Expand Down Expand Up @@ -1183,7 +1183,7 @@ public function preSave(){
// Exécution d'une commande
public function execute($_options = array()) {
$eqLogic = $this->getEqLogic();
if($this->getLogicalId() == 'refresh'){
if($this->getLogicalId() == 'refresh' || $this->getLogicalId() == 'json::{"refresh":null}'){
$eqLogic->refreshValue();
return;
}
Expand Down
3 changes: 3 additions & 0 deletions docs/fr_FR/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
>
>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.

- Correction d'un bug avec la commande refresh

# 13/03/2024

- Limitation de la mise à jour du firmware zigbee à Luna sur les box Luna (évite de casser la puce Zigbee en cas de mauvais choix)
Expand Down

0 comments on commit 0ec670c

Please sign in to comment.