From 18cb3fcf4c6d1073ff3e8f4a6de80388eda90e9f Mon Sep 17 00:00:00 2001 From: "Shaun J.V.Nieuwenhuizen" Date: Tue, 12 Mar 2024 23:31:34 +0200 Subject: [PATCH] Remove semicolon in solis_modbus sensor code --- custom_components/solis_modbus/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/solis_modbus/sensor.py b/custom_components/solis_modbus/sensor.py index c4e17e3..f211525 100644 --- a/custom_components/solis_modbus/sensor.py +++ b/custom_components/solis_modbus/sensor.py @@ -757,7 +757,7 @@ def clock_drift_test(controller, hours, minutes, seconds): if abs(total_drift) > 5: _LOGGER.info(f"inverter time {hours}:{minutes}:{seconds}. drift = {d_hours}:{d_minutes}:{d_seconds}, adjusting") - controller.write_holding_register(43005, current_time.second); + controller.write_holding_register(43005, current_time.second) else: _LOGGER.debug(f"inverter time {hours}:{minutes}:{seconds}. drift = {d_hours}:{d_minutes}:{d_seconds}")