mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Adjust logging level in ModBus (#128980)
Fix issue 127570 in ModBus Component
This commit is contained in:
parent
ef46280716
commit
bf8c345341
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user