diff --git a/upsmon/ups.py b/upsmon/ups.py index 835e28e..4ed0b6a 100644 --- a/upsmon/ups.py +++ b/upsmon/ups.py @@ -67,7 +67,7 @@ def main() -> int: while run.running: try: send(port, UPS_COMMAND) - raw_data = receive(port, UPS_COMMAND).lstrip('(').split() + raw_data = receive(port, UPS_COMMAND).lstrip('(').rstrip().split() if len(raw_data) < 8: LOGGER.error(f"Incomplete data: {raw_data}") continue