Skip to content

unable to execute new update bimmerconnected #406

Closed
@demel42

Description

Describe the issue

# bimmerconnected fingerprint <user> <pw> rest_of_world
#DEBUG:bimmer_connected.account:Getting vehicle list
ERROR:bimmer_connected.account:__init__() got an unexpected keyword argument 'allowed_methods'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/account.py", line 99, in _get_oauth_token
    token_data = self._login_row_na()
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/account.py", line 119, in _login_row_na
    oauth_session = RetrySession(status_forcelist=[401], allowed_methods=frozenset(["GET", "POST"]))
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/utils.py", line 54, in __init__
    allowed_methods=allowed_methods,
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
Traceback (most recent call last):
  File "/usr/local/bin/bimmerconnected", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/cli.py", line 282, in main
    args.func(args)
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/cli.py", line 127, in fingerprint
    log_responses=time_dir)
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/account.py", line 88, in __init__
    self._get_vehicles()
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/account.py", line 378, in _get_vehicles
    self._get_oauth_token()
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/account.py", line 113, in _get_oauth_token
    raise ex
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/account.py", line 99, in _get_oauth_token
    token_data = self._login_row_na()
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/account.py", line 119, in _login_row_na
    oauth_session = RetrySession(status_forcelist=[401], allowed_methods=frozenset(["GET", "POST"]))
  File "/usr/local/lib/python3.7/dist-packages/bimmer_connected/utils.py", line 54, in __init__
    allowed_methods=allowed_methods,
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'

equal behaviour with "status" or else

i have fresh upgraded

# pip3 install --upgrade bimmer_connected
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Requirement already satisfied: bimmer_connected in ./python3.7/dist-packages (0.8.8)
Requirement already satisfied: pycryptodome>=3.4 in ./python3.7/dist-packages (from bimmer_connected) (3.11.0)
Requirement already satisfied: requests>=2.24.0 in ./python3.7/dist-packages (from bimmer_connected) (2.26.0)
Requirement already satisfied: pyjwt>=2.1.0 in ./python3.7/dist-packages (from bimmer_connected) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.24.0->bimmer_connected) (2018.8.24)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.24.0->bimmer_connected) (2.6)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests>=2.24.0->bimmer_connected) (1.24.1)
Requirement already satisfied: charset-normalizer~=2.0.0 in ./python3.7/dist-packages (from requests>=2.24.0->bimmer_connected) (2.0.8)

up to some days/weeks ago, it worked with two different bmw-accouts, now it's broken

Expected behavior

get the fingerprint or status ...

Which Home Assistant version are you using?

not using HA

What was the last working version of Home Assistant Core?

no

What is your region?

Rest of world

ConnectedDrive website

  • I can still successfully login to the BMW ConnectedDrive website and the car status is available there.
  • I have ConnectedDrive enabled for my vehicle.

Number of cars

  • I have 2 or more cars linked to the ConnectedDrive account.
  • I have a Mini vehicle linked to my account.

Output of bimmer_connected fingerprint

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Metadata

Assignees

Labels

bug 🐛Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions