Skip to content

Commit

Permalink
Merge pull request #8 from ktn001/patch-1
Browse files Browse the repository at this point in the history
Update zwavejs.class.php
  • Loading branch information
zoic21 authored Oct 2, 2023
2 parents 1818a06 + fa3124b commit 4234a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/class/zwavejs.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1724,8 +1724,8 @@ public function updateCmd($_cmdId, $_value) {
$_cmdId = str_replace('_', ' ', $_cmdId);
$cmdId = explode('-', $_cmdId, 3);
$class = $cmdId[0];
$endpoint = $cmdId[1];
$property = $cmdId[2];
$endpoint = (count($cmdId) > 1) ? $cmdId[1] : null;
$property = (count($cmdId) > 2) ? $cmdId[2] : null;
$value = $_value;
if (isset($dictReplace[$property])) {
$_cmdId = $class . '-' . $endpoint . '-' . $dictReplace[$property];
Expand Down

0 comments on commit 4234a71

Please sign in to comment.