From f17f4f15ed73f833a9828d02ebedb5f0e637f566 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 9 Jan 2023 09:19:35 +0100 Subject: [PATCH] =?UTF-8?q?Gr=C3=BCnStromIndex:=20return=20rates=20by=20co?= =?UTF-8?q?py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tariff/gruenstromindex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tariff/gruenstromindex.go b/tariff/gruenstromindex.go index fe12fd130..0fb9a15a7 100644 --- a/tariff/gruenstromindex.go +++ b/tariff/gruenstromindex.go @@ -132,5 +132,5 @@ func (t *GrünStromIndex) Unit() string { func (t *GrünStromIndex) Rates() (api.Rates, error) { t.mux.Lock() defer t.mux.Unlock() - return t.data, outdatedError(t.updated, time.Hour) + return append(api.Rates{}, t.data...), outdatedError(t.updated, time.Hour) }