mirror of
https://github.com/KevinMidboe/schleppeUPSConsumption.git
synced 2025-10-29 01:40:13 +00:00
Added missing comma 🙃
This commit is contained in:
@@ -8,7 +8,7 @@ from logger import logger
|
|||||||
config = getConfig()
|
config = getConfig()
|
||||||
host = config['modbus']['host']
|
host = config['modbus']['host']
|
||||||
port = config['modbus']['port']
|
port = config['modbus']['port']
|
||||||
c = ModbusClient(host=host port=port, unit_id=1, auto_open=True)
|
c = ModbusClient(host=host, port=port, unit_id=1, auto_open=True)
|
||||||
|
|
||||||
def getAmps():
|
def getAmps():
|
||||||
amps = c.read_holding_registers(140, 1)
|
amps = c.read_holding_registers(140, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user