mirror of
https://github.com/home-assistant/core.git
synced 2026-08-28 10:16:02 -05:00
The integration borrows a ModbusUnit from a modbus_connection entry. When that connection drops, modbus_connection rebuilds it, but the borrowed unit is still bound to the old (closed) connection. Subscribe to the unit's on_connection_lost and reload so we re-borrow a unit on the fresh connection. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016huRs96kGdQbNQopXseC4H