mobly
mobly copied to clipboard
Docs: Add tutorial for writing custom controllers
Summary
This PR adds a new tutorial document explaining how to implement custom controller modules for non-Android devices (e.g., smart lights, PDUs). It includes a complete example with type hinting and proper error handling.
Solves
Closes #613
Changes
- Added
docs/tutorial_custom_controller.mdwith aSmartLightexample. - Updated
docs/index.rstto include the new tutorial in the table of contents.
Verification
I have verified that the example code adheres to Google Python style guidelines and passes local checks.