From 1d1942a4d3553b655e01a01f32560c42329d59cd Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 31 Jul 2024 16:26:51 +0200 Subject: [PATCH] sensor labels --- .../hottisThreeWayThermometer/hottisThreeWayThermometer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udi/handlers/ttn/models/hottisThreeWayThermometer/hottisThreeWayThermometer.go b/src/udi/handlers/ttn/models/hottisThreeWayThermometer/hottisThreeWayThermometer.go index 602c1c3..3dca107 100644 --- a/src/udi/handlers/ttn/models/hottisThreeWayThermometer/hottisThreeWayThermometer.go +++ b/src/udi/handlers/ttn/models/hottisThreeWayThermometer/hottisThreeWayThermometer.go @@ -34,7 +34,7 @@ func Parse(fPort int, _ []byte, frmPayload string, variables *map[string]databas sensorsMap := make(map[string]string) sensorsJSON, ok := (*device).Attributes["Sensors"].(string) if !ok { - return fmt.Errorf("Unable to load sensor map from attributes") + return fmt.Errorf("Unable to load sensor map from attributes: %s", (*device).Attributes) } errJ := json.Unmarshal([]byte(sensorsJSON), &sensorsMap) if errJ != nil {