We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28427b8 commit 3ba1457Copy full SHA for 3ba1457
letpot/deviceclient.py
@@ -51,7 +51,7 @@ def decorator(
51
@wraps(func)
52
async def wrapper(*args: P.args, **kwargs: P.kwargs) -> _R:
53
self = cast(LetPotDeviceClient, args[0])
54
- serial = cast(str, args[1])
+ serial = cast(str, args[1] if len(args) >= 2 else kwargs["serial"])
55
exception_message = f"Device missing required feature: {required_feature}"
56
try:
57
supported_features = self._converter(serial).supported_features()
0 commit comments