From b83d1251ed1296cc4ae5e6110d8798a9313e2add Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sat, 13 Jun 2020 20:46:23 -0700 Subject: [PATCH] better --- core/unifi/udm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/unifi/udm.go b/core/unifi/udm.go index aa2173dd..041eb2b5 100644 --- a/core/unifi/udm.go +++ b/core/unifi/udm.go @@ -70,7 +70,7 @@ type UDM struct { MaxAggregateSessions FlexInt `json:"max_aggregate_sessions"` } `json:"switch_caps"` HasFan FlexBool `json:"has_fan"` - Temperatures *Temperatures `json:"temperatures,omitempty"` + Temperatures []Temperature `json:"temperatures,omitempty"` RulesetInterfaces interface{} `json:"ruleset_interfaces"` /* struct { Br0 string `json:"br0"` @@ -174,7 +174,7 @@ type NetworkTable []struct { TxPackets FlexInt `json:"tx_packets"` } -type Temperatures []struct { +type Temperature struct { Name string `json:"name"` Type string `json:"type"` Value float64 `json:"value"`