Skip to content
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

Fix TypeError in Vehicle.last_connected #73

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

dvx76
Copy link
Member

@dvx76 dvx76 commented Mar 20, 2023

Fixes #70

File "/usr/local/lib/python3.10/site-packages/skodaconnect/dashboard.py", line 127, in state val = super().state
File "/usr/local/lib/python3.10/site-packages/skodaconnect/dashboard.py", line 58, in state if hasattr(self.vehicle, self.attr):
File "/usr/local/lib/python3.10/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected last_connected = datetime.strptime(last_connected_utc,'%Y-%m-%dT%H:%M:%S.%fZ').astimezone().replace(tzinfo=None).replace(microsecond=0) TypeError: strptime() argument 1 must be str, not None

Fixes skodaconnect#70

```
File "/usr/local/lib/python3.10/site-packages/skodaconnect/dashboard.py", line 127, in state val = super().state
File "/usr/local/lib/python3.10/site-packages/skodaconnect/dashboard.py", line 58, in state if hasattr(self.vehicle, self.attr):
File "/usr/local/lib/python3.10/site-packages/skodaconnect/vehicle.py", line 1542, in last_connected last_connected = datetime.strptime(last_connected_utc,'%Y-%m-%dT%H:%M:%S.%fZ').astimezone().replace(tzinfo=None).replace(microsecond=0) TypeError: strptime() argument 1 must be str, not None
```
@Farfar
Copy link
Collaborator

Farfar commented Mar 21, 2023

Kiitos!

@Farfar Farfar merged commit 6531070 into skodaconnect:main Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with Enyaq last_connected parsing
2 participants