From 4458043e92a11834ffc6793cec46c3d74281cc43 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 28 Oct 2024 18:52:04 +0100 Subject: [PATCH] Sunspec: fix invalid entry to model cache --- provider/sunspec_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/sunspec_cache.go b/provider/sunspec_cache.go index 402182ab71..8c53f16989 100644 --- a/provider/sunspec_cache.go +++ b/provider/sunspec_cache.go @@ -51,5 +51,5 @@ func (c *sunspecSubDeviceCache) Put(conn *modbus.Connection, subDevice int, dev } func sunspecSubdeviceAddr(conn *modbus.Connection, subDevice int) string { - return conn.String() + "::" + strconv.Itoa(subDevice) + return conn.Addr() + "::" + strconv.Itoa(subDevice) }