Skip to content

Commit

Permalink
Merge pull request #550 from nedyarrd/main
Browse files Browse the repository at this point in the history
Update solarman.py
  • Loading branch information
StephanJoubert authored Jul 5, 2024
2 parents ba7a850 + b4f2012 commit d5cf155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solarman/solarman.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def connect_to_server(self):
if self._modbus:
return self._modbus
log.info(f"Connecting to solarman data logger {self._host}:{self._port}")
self._modbus = PySolarmanV5(self._host, self._serial, port=self._port, mb_slave_id=self._mb_slaveid, logger=log, auto_reconnect=True, socket_timeout=15)
self._modbus = PySolarmanV5(self._host, self._serial, port=self._port, mb_slave_id=self._mb_slaveid, logger=None, auto_reconnect=True, socket_timeout=15)

def disconnect_from_server(self):
if self._modbus:
Expand Down

0 comments on commit d5cf155

Please sign in to comment.