Skip to content

Commit 6bb6b9d

Browse files
kiwizdlech
andauthored
Update bleak/backends/bluezdbus/utils.py
Co-authored-by: David Lechner <[email protected]>
1 parent b9d0dcf commit 6bb6b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bleak/backends/bluezdbus/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ def bdaddr_from_device_path(device_path: str) -> str:
4848

4949

5050
def get_dbus_authenticator():
51-
uid = 0
51+
uid = None
5252
try:
5353
uid = int(os.environ("BLEAK_DBUS_UID"))
5454
except ValueError:
5555
pass
5656

5757
auth = None
58-
if uid:
58+
if uid is not None:
5959
auth = AuthExternal(uid=uid)
6060

6161
return auth

0 commit comments

Comments
 (0)