Skip to content

modbus, do remove non-identical error log lines. #148520

Open
@janiversen

Description

@janiversen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions