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) }