From b0dd938b5decd178bf3630d6659e272b23fe8f8f Mon Sep 17 00:00:00 2001 From: Andre Kully Date: Thu, 23 Dec 2021 15:35:28 +0100 Subject: [PATCH] fix definition of type tags --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 087c823..39daae0 100644 --- a/main.go +++ b/main.go @@ -19,8 +19,8 @@ import ( type switchReport struct { Power float64 `json:"power"` WattPerSec float64 `json:"Ws"` - Relay bool `json:relay` - Temperature float64 `json:"temperature` + Relay bool `json:"relay"` + Temperature float64 `json:"temperature"` } const namespace = "mystrom"