pymammotion 0.2.80__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.
@@ -726,3 +726,4 @@ class CloudIOTGateway:
726
726
  @property
727
727
  def connect_response(self):
728
728
  return self._connect_response
729
+
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(row, dict)))
34
+ codes.append(ErrorInfo(**cast(dict, row)))
35
35
  return codes
36
36
 
37
37
  async def oauth_check(self) -> None:
@@ -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: Optional[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
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.80
3
+ Version: 0.2.81
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -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=m-cVJ0p3-v1mKM24lTKTj3t0PEseO5ca2FbyK_iT_S8,25657
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=gJU8w3j8NL_m5YnxfbRxxm4y9SW0UfKr1iAaMvLsfuM,3562
48
- pymammotion/http/model/http.py,sha256=uw2KPQmr8acsx0cikOwbjHVcKMK9u8pjQ5xqOQg1myY,1746
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.80.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
- pymammotion-0.2.80.dist-info/METADATA,sha256=hOQ97g5ATgHOALgN7KbT45Ow5927aP0N57CULTTTW5Y,3896
124
- pymammotion-0.2.80.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
125
- pymammotion-0.2.80.dist-info/RECORD,,
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,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.8.1
2
+ Generator: poetry-core 1.9.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any