Open
Description
The problem
Duplicate identical log lines should be avoided.
Current implementation:
when an error is logged in modbus.py, further errors are logged as debug (if active) meaning important information can be lost.
Suggested implementation:
when an error is logged, compare to the last error and if identical do not log.
What version of Home Assistant Core has the issue?
2025.7.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
https://www.home-assistant.io/integrations/modbus/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response