-
-
Notifications
You must be signed in to change notification settings - Fork 12
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' object has no attribute 'setdefault' #24
Comments
Yup. I can see the same error now. Will take a look at it when I can. The integration is working fine nonetheless. Is your not? The error is something with timezones in different formats through out the world. I don't think it has something to do with app changes. |
for me there is no data at all.. but that might be related to having a dedicated 'follower' user as a carelink account. By the way the python client now has an update that you might need to integrate. |
From home assistant logs. I hope it helps troubleshooting Deze fout is ontstaan door een aangepaste integratie. Logger: custom_components.carelink Unexpected error fetching carelink data: 'NoneType' object has no attribute 'setdefault' |
Pulled from the logs at debug level.. |
I got the carelink python code running on my desktop by adding the patient username to the userjson a quick hack could be to introduce a new variable to allow data retrieval for 1 patient. in future the integration has a whole new root level. Instead of the pump being the root, the patient would be the new root, where there can be up to four patients. |
Did a manual adjustment in api.py locally on my HA instance, and it works immediately.. |
Indeed, I changed this under api.py: And it worked... |
Indeed, line 350 in api.py. The whole community behind the Java coding and the Python port on which this integration is relying on is debating how to implement. Making it single patient configurable or as medtronic is exposing it, enabling for 4 patients. |
Looks good guys. Is there anyone who can make a PR of it. I'm happy to to approve it. Otherwise it make take a little while because I'm quite busy with work and home stuff at the moment. |
Thanks to your research a fix for the Carelink Partner accounts was not that hard to make. I made a pre-release available for testing here. I tested with a running integration with a normal account. Removed the integration and logged in with a partner account. Both worked fine. But I would love to here from more people that it is working well before releasing it to a greater group of people. |
I was running with your code in the train yesterday afternoon, so i will be curious to compare my hacky solution with yours.. :) One beautification thingy, the new field to configure does not have a title, something to add for the final version. ;) |
I released a new version with Carelink Partner support and some minor fixes and translations. |
This issue is stale because it has been open for 30 days with no activity. |
Confirmed to be working, let's close this ticket |
Since 24-5-2023 this error is starting to occur in the log of HA.
Not accidentally when looking in the Carelink APP (Ios or Android) i can now select which person to follow. (up to 4 people)
So i think there might be some technical issues with the API url, and retrieved data.
For now disabling the Integration :-(
The text was updated successfully, but these errors were encountered: