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

NoneType error #174

Closed
midnightsurfer opened this issue Apr 23, 2023 · 1 comment
Closed

NoneType error #174

midnightsurfer opened this issue Apr 23, 2023 · 1 comment

Comments

@midnightsurfer
Copy link

0.0.12

Configuration

Add your logs here.

Description

a nonetype error has consistently prevented operation for a few weeks now. Same error, causes all sensors to be unavailable. Tried uninstalling and reinstalling.

debug Logs


Logger: custom_components.porscheconnect
Source: custom_components/porscheconnect/__init__.py:194 
Integration: Porsche Connect ([documentation](https://github.com/CJNE/ha-porscheconnect), [issues](https://github.com/CJNE/ha-porscheconnect/issues)) 
First occurred: 12:00:48 (8 occurrences) 
Last logged: 12:02:39

Unexpected error fetching porscheconnect data: 'NoneType' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/porscheconnect/__init__.py", line 194, in _async_update_data
    permission_for_vin = await self.controller.isAllowed(vin)
  File "/usr/local/lib/python3.10/site-packages/pyporscheconnectapi/client.py", line 430, in isAllowed
    reason = service_status.get(
AttributeError: 'NoneType' object has no attribute 'get'

@CJNE
Copy link
Owner

CJNE commented Apr 23, 2023

Version 0.0.13 was just release, it should fix this issue, re-open if you still have issues with the new version 👍

@CJNE CJNE closed this as completed Apr 23, 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

No branches or pull requests

2 participants