From 4a3db6a3fc0d17a7fac7021db0dc8864492c7a48 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 1 Nov 2025 20:24:04 +0000 Subject: [PATCH] fix: Correct Modbus client class name in signals endpoint Use correct class name 'ModbusClient' instead of 'ModbusTCPClient' --- src/dashboard/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dashboard/api.py b/src/dashboard/api.py index 07a93f8..81942af 100644 --- a/src/dashboard/api.py +++ b/src/dashboard/api.py @@ -718,10 +718,10 @@ async def get_signals(): # Try to use real protocol data for Modbus, fallback for OPC UA try: - from .protocol_clients import ModbusTCPClient + from .protocol_clients import ModbusClient # Create Modbus client - modbus_client = ModbusTCPClient( + modbus_client = ModbusClient( host="localhost", port=502, unit_id=1