From b3db9e93fea0bd6fdb20ca3767dbb51cff30430a Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 25 Aug 2026 13:41:40 +0200 Subject: [PATCH] Fix tariff API route not matching co2 (#33166) --- server/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/http.go b/server/http.go index 7d55c32bd..7816f07ba 100644 --- a/server/http.go +++ b/server/http.go @@ -198,7 +198,7 @@ func (s *HTTPd) RegisterSiteHandlers(site site.API) { "smartcostdelete": {"DELETE", "/smartcostlimit", updateSmartCostLimit(site, smartCostLimit)}, "smartfeedin": {"POST", "/smartfeedinprioritylimit/{value:-?[0-9.]+}", updateSmartCostLimit(site, smartFeedInPriorityLimit)}, "smartfeedindelete": {"DELETE", "/smartfeedinprioritylimit", updateSmartCostLimit(site, smartFeedInPriorityLimit)}, - "tariff": {"GET", "/tariff/{tariff:[a-z]+}", tariffHandler(site)}, + "tariff": {"GET", "/tariff/{tariff:[a-z0-9]+}", tariffHandler(site)}, "sessions": {"GET", "/sessions", sessionHandler}, "updatesession": {"PUT", "/session/{id:[0-9]+}", updateSessionHandler}, "deletesession": {"DELETE", "/session/{id:[0-9]+}", deleteSessionHandler},