Permalink
Browse files

Update zigbee2mqtt.class.php

  • Loading branch information...
directman66 committed Feb 3, 2019
1 parent 10a0358 commit 836d402ee781ebd963550f9129a0d37cf29a63fb
Showing with 4 additions and 4 deletions.
  1. +4 −4 modules/zigbee2mqtt/zigbee2mqtt.class.php
@@ -530,7 +530,7 @@ function admin(&$out) {
$out['FIND']=$res['FIND'];
$out['LOCATION_ID']=$res['LOCATION_ID'];
$res1=SQLSelectOne("SELECT * FROM zigbee2mqtt_devices_list where zigbeeModel='".$res['MODEL']."'");
$res1=SQLSelectOne("SELECT * FROM zigbee2mqtt_devices_list where zigbeeModel='".$res['MODELID']."'");
$out['MODELNAME']=$res1['model'];
$out['VENDOR']=$res1['vendor'];
$out['DESCRIPTION']=$res1['description'];
@@ -1071,11 +1071,11 @@ function delete_mqtt($id) {
// some action for related tables
//debmes("DELETE FROM zigbee2mqtt WHERE DEV_ID='".$rec['DEV_ID']."'",'zigbee2mqtt');
debmes("DELETE FROM zigbee2mqtt_devices WHERE DEV_ID='".$id."'", 'zigbee2mqtt');
SQLExec("DELETE FROM zigbee2mqtt_devices WHERE DEV_ID='".$id."'");
debmes("DELETE FROM zigbee2mqtt_devices WHERE ID='".$id."'", 'zigbee2mqtt');
SQLExec("DELETE FROM zigbee2mqtt_devices WHERE ID='".$id."'");
SQLExec("DELETE FROM zigbee2mqtt WHERE DEV_ID='".$id."'");
}
/**
* Install

0 comments on commit 836d402

Please sign in to comment.