pycupra 0.0.1__py3-none-any.whl → 0.0.2__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.
pycupra/vehicle.py CHANGED
@@ -1332,15 +1332,15 @@ class Vehicle:
1332
1332
  """Return true if external power is connected."""
1333
1333
  response = ''
1334
1334
  if self.attrs.get('charging', False):
1335
- response = self.attrs.get('charging', {}).get('status', {}).get('charging', {}).get('plug', {}).get('externalPower', '')
1335
+ response = self.attrs.get('charging', {}).get('status', {}).get('plug', {}).get('externalPower', '')
1336
1336
  else:
1337
1337
  response = ''
1338
- return True if response in ['stationConnected', 'available', 'Charging'] else False
1338
+ return True if response in ['stationConnected', 'available', 'Charging', 'ready'] else False
1339
1339
 
1340
1340
  @property
1341
1341
  def is_external_power_supported(self):
1342
1342
  """External power supported."""
1343
- if self.attrs.get('charging', {}).get('status', {}).get('charging', {}).get('plug, {}').get('externalPower', False):
1343
+ if self.attrs.get('charging', {}).get('status', {}).get('plug, {}').get('externalPower', False):
1344
1344
  return True
1345
1345
 
1346
1346
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycupra
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: A library to read and send vehicle data via Cupra/Seat portal using the same API calls as the MyCupra/MySeat mobile app.
5
5
  Home-page: https://github.com/WulfgarW/pycupra
6
6
  Author: WulfgarW
@@ -0,0 +1,13 @@
1
+ pycupra/__init__.py,sha256=VPzUfKd5mBFD1UERNV61FbGHih5dQPupLgIfYtmIUi4,230
2
+ pycupra/__version__.py,sha256=dvx24AtfGPI2pu0OBXAx9Why1tiptwNt5QAjyrYGOQk,207
3
+ pycupra/connection.py,sha256=9EXvTbBZJTcCAef5mYuvldAxBcNnxxxCdPZfi2_TtdM,76264
4
+ pycupra/const.py,sha256=Mx9pPZifQBpn9lTsLH8R7xkUHrXRvul8w_b6LLLD7gE,10038
5
+ pycupra/dashboard.py,sha256=GpkGEYZQpU1B8_QEtCXJC6U8o4lDFmAK6U6FNnd1J4g,36593
6
+ pycupra/exceptions.py,sha256=Nq_F79GP8wjHf5lpvPy9TbSIrRHAJrFMo0T1N9TcgSQ,2917
7
+ pycupra/utilities.py,sha256=cH4MiIzT2WlHgmnl_E7rR0R5LvCXfDNvirJolct50V8,2563
8
+ pycupra/vehicle.py,sha256=Xk0uK0ivV1-jsZOZqw9xKxFU19bBBe1va274V1Ee_xs,108383
9
+ pycupra-0.0.2.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
10
+ pycupra-0.0.2.dist-info/METADATA,sha256=nbyEz1wra5P0AvppO4z2-nFQb7-U-xWVv_wekxL24j4,2578
11
+ pycupra-0.0.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
12
+ pycupra-0.0.2.dist-info/top_level.txt,sha256=9Lbj_jG4JvpGwt6K3AwhWFc0XieDnuHFOP4x44wSXSQ,8
13
+ pycupra-0.0.2.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- pycupra/__init__.py,sha256=VPzUfKd5mBFD1UERNV61FbGHih5dQPupLgIfYtmIUi4,230
2
- pycupra/__version__.py,sha256=RPTQ353sB0uLocLwAxWtJQh9oeF8Z1LzKtstisfsDT4,207
3
- pycupra/connection.py,sha256=9EXvTbBZJTcCAef5mYuvldAxBcNnxxxCdPZfi2_TtdM,76264
4
- pycupra/const.py,sha256=Mx9pPZifQBpn9lTsLH8R7xkUHrXRvul8w_b6LLLD7gE,10038
5
- pycupra/dashboard.py,sha256=127hWC-1-BjF5Fx_b6BwVVntrc0jm3WEneRG0R_9GbM,35335
6
- pycupra/exceptions.py,sha256=Nq_F79GP8wjHf5lpvPy9TbSIrRHAJrFMo0T1N9TcgSQ,2917
7
- pycupra/utilities.py,sha256=cH4MiIzT2WlHgmnl_E7rR0R5LvCXfDNvirJolct50V8,2563
8
- pycupra/vehicle.py,sha256=--9K8IXoq8swFWVUvf_jD5v0tm4ilM_tCU8yf7OS3Zk,108414
9
- pycupra-0.0.1.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
10
- pycupra-0.0.1.dist-info/METADATA,sha256=qDe0tJ8RW4fko1nCSEUj0ijUgvFj5val0GpK1C4e1ro,2578
11
- pycupra-0.0.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
12
- pycupra-0.0.1.dist-info/top_level.txt,sha256=9Lbj_jG4JvpGwt6K3AwhWFc0XieDnuHFOP4x44wSXSQ,8
13
- pycupra-0.0.1.dist-info/RECORD,,