Skip to content

Commit d9cff63

Browse files
authored
Refactor Bool member assignment in miot_device.py
Updated Bool member assignment to use _str2bool directly for future decorator compatibility.
1 parent c5cc0f2 commit d9cff63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miio/miot_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _str2bool(x):
2626
Float = float
2727

2828
if sys.version_info >= (3, 11):
29-
Bool = member(partial(_str2bool))
29+
Bool = member(_str2bool) # same as partial that will be a decorator in the future.
3030
else:
3131
Bool = partial(_str2bool)
3232

0 commit comments

Comments
 (0)