Skip to content

Commit f0b87d4

Browse files
committed
Always treat path as str
1 parent faa9d6e commit f0b87d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uhubctl/usb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, path: str, enumerate_ports: bool = False) -> None:
4040
path: USB hub path identifier
4141
enumerate_ports: Automatically enumerate ports
4242
"""
43-
self.path: str = path
43+
self.path: str = str(path)
4444
self.ports: List[Port] = []
4545

4646
if enumerate_ports:

0 commit comments

Comments
 (0)