aioamazondevices 0.1.0__py3-none-any.whl → 0.1.1__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.
@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.1.1"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
aioamazondevices/api.py CHANGED
@@ -70,12 +70,15 @@ class AmazonEchoApi:
70
70
  login_password: str,
71
71
  ) -> None:
72
72
  """Initialize the scanner."""
73
- locale = DOMAIN_BY_COUNTRY.get(login_country_code)
74
- domain = locale["domain"] if locale else login_country_code
73
+ # Force country digits as lower case
74
+ country_code = login_country_code.lower()
75
+
76
+ locale = DOMAIN_BY_COUNTRY.get(country_code)
77
+ domain = locale["domain"] if locale else country_code
75
78
 
76
79
  assoc_handle = "amzn_dp_project_dee_ios"
77
80
  if not locale:
78
- assoc_handle += f"_{login_country_code}"
81
+ assoc_handle += f"_{country_code}"
79
82
  self._assoc_handle = assoc_handle
80
83
 
81
84
  self._login_email = login_email
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioamazondevices
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python library to control Amazon devices
5
5
  Home-page: https://github.com/chemelli74/aioamazondevices
6
6
  License: Apache Software License 2.0
@@ -0,0 +1,9 @@
1
+ aioamazondevices/__init__.py,sha256=SuObz0aaV65dnO31xiBGb_haUxDDGXws2ymCzUMqY3U,276
2
+ aioamazondevices/api.py,sha256=CmPKA68a53zs0DuirAnV3UaJEaSLk3Ibz6KBEgJCufk,8934
3
+ aioamazondevices/const.py,sha256=bZaeO8AeJbDc5hdlbJ3cMwM9teTgYhExSR1oEpRFMLk,1089
4
+ aioamazondevices/exceptions.py,sha256=tERMur_gry9TmU3UyzndJO_CLViISn4b8ClrRbryFy8,444
5
+ aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ aioamazondevices-0.1.1.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
7
+ aioamazondevices-0.1.1.dist-info/METADATA,sha256=8Ha1ublO8rQgFJuOWq0ur8zhAKzNCYgdVS4KplWbnO8,4680
8
+ aioamazondevices-0.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
9
+ aioamazondevices-0.1.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- aioamazondevices/__init__.py,sha256=U15rPzIFIx526iBdCgherokeEZMIr1qB8g-kFW28oIM,276
2
- aioamazondevices/api.py,sha256=r8WeERP8FBwzj4gJzwTwem69102Hg6dmz-Q5tJrPJV8,8856
3
- aioamazondevices/const.py,sha256=bZaeO8AeJbDc5hdlbJ3cMwM9teTgYhExSR1oEpRFMLk,1089
4
- aioamazondevices/exceptions.py,sha256=tERMur_gry9TmU3UyzndJO_CLViISn4b8ClrRbryFy8,444
5
- aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- aioamazondevices-0.1.0.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
7
- aioamazondevices-0.1.0.dist-info/METADATA,sha256=wfe_Z0hPTGrccs3lR6eliUWVRzh8M_lMuSL3vIqPHh0,4680
8
- aioamazondevices-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
9
- aioamazondevices-0.1.0.dist-info/RECORD,,