Skip to content

Commit

Permalink
Parser: PHP warning fix for virtual remote
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Nov 17, 2024
1 parent 331f9c1 commit 00f8ec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/php/AbeilleParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,8 @@ function signalHandler($signal) {
logMessage('debug', " ERROR: Unknown device ".$net."/".$addr);
continue;
}
$ieee = $GLOBALS['devices'][$net][$addr]['zigbee']['ieee'];
// Note: No IEEE for virtual remote control (addr=rcXX)
$ieee = isset($GLOBALS['devices'][$net][$addr]['zigbee']['ieee']) ? $GLOBALS['devices'][$net][$addr]['zigbee']['ieee'] : '?';
unset($GLOBALS['devices'][$net][$addr]);
// TODO: Instead of removing, might be worth flaging it to not loose infos if rejoin
logMessage('debug', " Device ${net}/${addr} (ieee=${ieee}) removed from Jeedom");
Expand Down

0 comments on commit 00f8ec8

Please sign in to comment.