Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Aug 10, 2024
1 parent ab6f5e3 commit d9b693f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/philipsHued/philipsHued.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function launchConnection(_bridge_id,_retry){
if(data[0].id){
bridges[_bridge_id]['lastEvent'] = data[0].id;
}
if(data['data'] && data['data'].length == 1 && data['data'][0]['type'] == 'geofence_client' && data['data'][0]['name'].indexOf('jeedom') === 0){
if(data.length == 0 && data[0]['data'] && data[0]['data'].length == 1 && data[0]['data'][0]['type'] == 'geofence_client' && data[0]['data'][0]['name'].indexOf('jeedom') === 0){
return;
}
Jeedom.com.add_changes('bridge::'+_bridge_id,e.data);
Expand Down

0 comments on commit d9b693f

Please sign in to comment.