-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: unsupported format string passed to NoneType.__format__ #118
Comments
Ok seems there are more errors coming in.. on my second vehicle (MYC) : |
Oh and another Question, while im trying to understand how to use the class:
Allways dumps me everything 0?? |
I can't reproduce these errors and I have never seen all zero's returned by the API. Does cli.py work for you? Can you do python cli.py -e [email protected] -w -g? |
Ok, the cli.py works smoothless. all values are there. I tried this again after the successful cli.py
Everything is 0... If i start cli.py again.. all values are there.. hmm... where is the bug in this short code? :-) Another Question, when i issue a -u: 2023-01-09 07:01:14,814 - root - INFO - 2 product(s), 2 selected deviceCountry=US -> Maybe this? im located in DE... |
Ok maybe found something. in the Example you write: This isnt done. My small script works if i change to this:
And this is why cli.py works. It calls the get_verhicle_data... |
Do you have two Teslas? Because you're gathering data from vehicles[1],
instead of vehicles[0]?
…On Mon, Jan 9, 2023 at 3:52 AM Claus Herrmann ***@***.***> wrote:
Ok maybe found something. in the Example you write:
-> automatically calls get_latest_vehicle_data() when a key is not found.
This isnt done. My small script works if i change to this:
vehicles = tesla.vehicle_list()
vehicles[1].sync_wake_up()
vehicles[1].get_vehicle_data()
print(vehicles[1]['charge_state'])
tesla.close()
Cheers
C.
—
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A22GEVD6OUI4WZLNJ7P3YF3WRO7TDANCNFSM6AAAAAATQQG4XA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yes correct. Got two Teslas and allways trying 0 and 1 just to check if both behave same. |
It seems that USER_ACCOUNT_GET_DETAILS is no longer available. |
Latest commit should fix the option list TypeError, as vehicle options are now None. |
HI,
treid your little programs. the menu.py threw me this:
Traceback (most recent call last):
File "/home/pos/python/./menu.py", line 347, in
main()
File "/home/pos/python/./menu.py", line 326, in main
menu(vehicles[idx])
File "/home/pos/python/./menu.py", line 180, in menu
show_vehicle_data(vehicle.get_vehicle_data())
File "/home/pos/python/./menu.py", line 75, in show_vehicle_data
print(fmt.format(door.get(ve['ft']), door.get(ve['rt'])))
TypeError: unsupported format string passed to NoneType.format
The text was updated successfully, but these errors were encountered: