Skip to content
Permalink
Browse files

Update zigbee2mqtt.class.php

  • Loading branch information...
directman66 committed Apr 22, 2019
1 parent af924fd commit 4f0d60eb8aa12cec92e0d352869f0d0fa09cbe94
Showing with 9 additions and 1 deletion.
  1. +9 −1 modules/zigbee2mqtt/zigbee2mqtt.class.php
@@ -954,10 +954,18 @@ function admin(&$out) {
$location_id_opt[$tmp[$locations_i]['ID']]=$tmp[$locations_i]['TITLE'];
}
for($i=0;$i<count($tmp);$i++) {
if ($rec['LOCATION_ID']==$tmp[$i]['ID']) $tmp[$i]['SELECTED']=1;
if ($res['LOCATION_ID']==$tmp[$i]['ID']) $tmp[$i]['SELECTED']=1;
}
$out['LOCATION_ID_OPTIONS']=$tmp;
debmes('location', 'zigbee2mqtt');
debmes($tmp, 'zigbee2mqtt');
}
if ($this->view_mode=='update_device') {

0 comments on commit 4f0d60e

Please sign in to comment.
You can’t perform that action at this time.