Skip to content

Commit 02da106

Browse files
authored
Merge pull request ReolinkCameraAPI#50 from chripell/master
Fix importing of choices function from random library.
2 parents 5b782bf + bf41e79 commit 02da106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reolinkapi/mixins/stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import string
2-
from random import random
2+
from random import choices
33
from typing import Any, Optional
44
from urllib import parse
55
from io import BytesIO
@@ -36,7 +36,7 @@ def get_snap(self, timeout: float = 3, proxies: Any = None) -> Optional[Image]:
3636
data = {
3737
'cmd': 'Snap',
3838
'channel': 0,
39-
'rs': ''.join(random.choices(string.ascii_uppercase + string.digits, k=10)),
39+
'rs': ''.join(choices(string.ascii_uppercase + string.digits, k=10)),
4040
'user': self.username,
4141
'password': self.password,
4242
}

0 commit comments

Comments
 (0)