This commit is contained in:
parent
c8c7c9e938
commit
dc1bc7f135
1
unifi.go
1
unifi.go
@ -41,7 +41,6 @@ func processUcAPIs() ([]node, []link, error) {
|
|||||||
for _, jsonDevice := range d.Devices {
|
for _, jsonDevice := range d.Devices {
|
||||||
var currentDevice ucDevice
|
var currentDevice ucDevice
|
||||||
var currentJSONDevice device
|
var currentJSONDevice device
|
||||||
isOnline := currentDevice.State == 1
|
|
||||||
for _, device := range devices {
|
for _, device := range devices {
|
||||||
if strings.EqualFold(device.Mac, jsonDevice.MAC) {
|
if strings.EqualFold(device.Mac, jsonDevice.MAC) {
|
||||||
currentDevice = device
|
currentDevice = device
|
||||||
|
Loading…
Reference in New Issue
Block a user