Skip to content

Fix: catch ModbusIOException in config flow connection test - #76

Merged
partach merged 1 commit into
mainfrom
claude/investigate-branch-delta-yrLn9
Jul 30, 2026
Merged

Fix: catch ModbusIOException in config flow connection test#76
partach merged 1 commit into
mainfrom
claude/investigate-branch-delta-yrLn9

Conversation

@partach

@partach partach commented Jul 30, 2026

Copy link
Copy Markdown
Owner

The BLE001 lint fix narrowed except Exception to specific types but missed ModbusIOException, which pymodbus raises on communication failures. This caused uncaught exceptions when testing serial Modbus connections with unresponsive devices.

https://claude.ai/code/session_0141XkQRjcng4RKLD4Yv5FAr

The BLE001 lint fix narrowed `except Exception` to specific types but
missed ModbusIOException, which pymodbus raises on communication
failures. This caused uncaught exceptions when testing serial Modbus
connections with unresponsive devices.

https://claude.ai/code/session_0141XkQRjcng4RKLD4Yv5FAr
@partach
partach merged commit 6d09b55 into main Jul 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants