aioamazondevices 0.5.0__tar.gz → 0.6.0__tar.gz

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
  Metadata-Version: 2.1
2
2
  Name: aioamazondevices
3
- Version: 0.5.0
3
+ Version: 0.6.0
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "aioamazondevices"
3
- version = "0.5.0"
3
+ version = "0.6.0"
4
4
  description = "Python library to control Amazon devices"
5
5
  authors = ["Simone Chemelli <simone.chemelli@gmail.com>"]
6
6
  license = "Apache Software License 2.0"
@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "0.5.0"
3
+ __version__ = "0.6.0"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
@@ -153,7 +153,7 @@ class AmazonEchoApi:
153
153
  def _get_request_from_soup(self, soup: BeautifulSoup) -> tuple[str, str]:
154
154
  """Extract URL and method for the next request."""
155
155
  _LOGGER.debug("Get request data from HTML source")
156
- form = soup.find("form")
156
+ form = soup.find("form", {"name": "signIn"}) or soup.find("form")
157
157
  if isinstance(form, Tag):
158
158
  method = form["method"]
159
159
  url = form["action"]