pymammotion 0.2.79__py3-none-any.whl → 0.2.81__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pymammotion/aliyun/cloud_gateway.py +1 -0
- pymammotion/http/http.py +1 -1
- pymammotion/http/model/http.py +8 -2
- {pymammotion-0.2.79.dist-info → pymammotion-0.2.81.dist-info}/METADATA +1 -1
- {pymammotion-0.2.79.dist-info → pymammotion-0.2.81.dist-info}/RECORD +7 -7
- {pymammotion-0.2.79.dist-info → pymammotion-0.2.81.dist-info}/WHEEL +1 -1
- {pymammotion-0.2.79.dist-info → pymammotion-0.2.81.dist-info}/LICENSE +0 -0
pymammotion/http/http.py
CHANGED
@@ -31,7 +31,7 @@ class MammotionHTTP:
|
|
31
31
|
reader = csv.DictReader(data.get("data", "").split("\n"), delimiter=",")
|
32
32
|
codes = []
|
33
33
|
for row in reader:
|
34
|
-
codes.append(ErrorInfo(**cast(
|
34
|
+
codes.append(ErrorInfo(**cast(dict, row)))
|
35
35
|
return codes
|
36
36
|
|
37
37
|
async def oauth_check(self) -> None:
|
pymammotion/http/model/http.py
CHANGED
@@ -60,10 +60,13 @@ class Response(DataClassDictMixin, Generic[DataT]):
|
|
60
60
|
class LoginResponseUserInformation(DataClassORJSONMixin):
|
61
61
|
areaCode: str
|
62
62
|
domainAbbreviation: str
|
63
|
-
email: Optional[str]
|
64
63
|
userId: str
|
65
64
|
userAccount: str
|
66
65
|
authType: str
|
66
|
+
email: Optional[str] = None
|
67
|
+
|
68
|
+
class Config(BaseConfig):
|
69
|
+
omit_none = True
|
67
70
|
|
68
71
|
|
69
72
|
@dataclass
|
@@ -72,8 +75,11 @@ class LoginResponseData(DataClassORJSONMixin):
|
|
72
75
|
token_type: Literal["bearer", "Bearer"]
|
73
76
|
refresh_token: str
|
74
77
|
expires_in: int
|
75
|
-
scope: Literal["read", "Read"]
|
76
78
|
grant_type: Literal["password", "Password"]
|
77
79
|
authorization_code: str
|
78
80
|
userInformation: LoginResponseUserInformation
|
79
81
|
jti: str
|
82
|
+
scope: Literal["read", "Read"] = None
|
83
|
+
|
84
|
+
class Config(BaseConfig):
|
85
|
+
omit_none = True
|
@@ -1,6 +1,6 @@
|
|
1
1
|
pymammotion/__init__.py,sha256=jHCQrpJaG1jAoID9T4RT3g4JsZc0JpJqIcqjnA7cXd0,1605
|
2
2
|
pymammotion/aliyun/__init__.py,sha256=T1lkX7TRYiL4nqYanG4l4MImV-SlavSbuooC-W-uUGw,29
|
3
|
-
pymammotion/aliyun/cloud_gateway.py,sha256=
|
3
|
+
pymammotion/aliyun/cloud_gateway.py,sha256=Pg8EVfIWbIVjiCU7etzAbP_h7M77NuezKiCRNoUXcSc,25658
|
4
4
|
pymammotion/aliyun/cloud_service.py,sha256=px7dUKow5Z7VyebjYzuKkzkm77XbUXYiFiYO_2e-UQ0,2207
|
5
5
|
pymammotion/aliyun/model/aep_response.py,sha256=8f6GIP58ve8gd6AL3HBoXxsy0n2q4ygWvjELGnoOnVc,452
|
6
6
|
pymammotion/aliyun/model/connect_response.py,sha256=Yz-fEbDzgGPTo5Of2oAjmFkSv08T7ze80pQU4k-gKIU,824
|
@@ -44,8 +44,8 @@ pymammotion/data/state_manager.py,sha256=vtBT28-5DY58hJMi_kqOUKnOq6rJ4fx1zX8yU7N
|
|
44
44
|
pymammotion/event/__init__.py,sha256=mgATR6vPHACNQ-0zH5fi7NdzeTCDV1CZyaWPmtUusi8,115
|
45
45
|
pymammotion/event/event.py,sha256=UzYnxV5DfvMDK3E06UvSzvzuBbaXOOUwO6xYt_zn9To,2034
|
46
46
|
pymammotion/http/_init_.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
|
-
pymammotion/http/http.py,sha256=
|
48
|
-
pymammotion/http/model/http.py,sha256=
|
47
|
+
pymammotion/http/http.py,sha256=9TnVah-R8nkjlb6oCMk78IZ0Y-2iAcMyIdjcQ54GEPk,3562
|
48
|
+
pymammotion/http/model/http.py,sha256=Xh8c5Z6teISEHE1CaG5JxVICytNd2LUD9gnK-EquOl8,1862
|
49
49
|
pymammotion/mammotion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
50
50
|
pymammotion/mammotion/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
51
51
|
pymammotion/mammotion/commands/abstract_message.py,sha256=l2Wcyg7tIEjRGyQAk9T2rQVOLwilxG1hXTNf7811jGA,727
|
@@ -119,7 +119,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
|
|
119
119
|
pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
|
120
120
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
121
121
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
122
|
-
pymammotion-0.2.
|
123
|
-
pymammotion-0.2.
|
124
|
-
pymammotion-0.2.
|
125
|
-
pymammotion-0.2.
|
122
|
+
pymammotion-0.2.81.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
123
|
+
pymammotion-0.2.81.dist-info/METADATA,sha256=DhW5XcfCq5yDvfEF3FsIQ-NwLh8gAl1JvU-3_PeixN4,3896
|
124
|
+
pymammotion-0.2.81.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
125
|
+
pymammotion-0.2.81.dist-info/RECORD,,
|
File without changes
|