Skip to content

Commit

Permalink
Merge pull request #515 from WillCodeForCats/code-quality
Browse files Browse the repository at this point in the history
Catch ModbusIOException from setup
  • Loading branch information
WillCodeForCats authored Jan 23, 2024
2 parents 9535981 + 6a49422 commit 5312237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solaredge_modbus_multi/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ async def async_refresh_modbus_data(self) -> bool:
async with self._lock:
await self._async_init_solaredge()

except ConnectionException as e:
except (ConnectionException, ModbusIOException) as e:
self.disconnect()
raise HubInitFailed(f"Setup failed: {e}")

Expand Down

0 comments on commit 5312237

Please sign in to comment.