Adjust logging level in ModBus (#128980)

Fix issue 127570 in ModBus Component
This commit is contained in:
Claudio Ruggeri - CR-Tech 2024-10-23 11:16:01 +02:00 committed by GitHub
parent ef46280716
commit bf8c345341
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -316,7 +316,7 @@ class ModbusHub:
self._log_error(err, error_state=False)
return
message = f"modbus {self.name} communication open"
_LOGGER.warning(message)
_LOGGER.info(message)
async def async_setup(self) -> bool:
"""Set up pymodbus client."""
@ -368,7 +368,7 @@ class ModbusHub:
del self._client
self._client = None
message = f"modbus {self.name} communication closed"
_LOGGER.warning(message)
_LOGGER.info(message)
async def low_level_pb_call(
self, slave: int | None, address: int, value: int | list[int], use_call: str