-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise LockNotAcquiredException if ADB lock cannot be acquired (#137)
* Raise LockNotAcquiredException if ADB lock cannot be acquired * Change tab to spaces * Update HA component code * Fix Android TV tests * Import adb-shell exceptions * Add tests for Home Assistant services * Remove duplicated variable * Warn when 'connect()' fails due to LockNotAcquiredException * Add a test to make sure that 'FakeLock' behaves as expected * Clean up tests in test_adb_manager.py
- Loading branch information
1 parent
92e0d3b
commit 809e906
Showing
4 changed files
with
383 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Exceptions for use throughout the code. | ||
""" | ||
|
||
|
||
class LockNotAcquiredException(Exception): | ||
"""The ADB lock could not be acquired.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.