-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unknown account spending response #4
Comments
I do have spending controls disabled for my kids, so that may be the issue. This does get rather noisy in HA though. Perhaps you can suppress this message for such cases?
|
I went ahead an enabled family spending monitoring, but I am still receiving the error. I wonder if it's because I have never funded the account? It looks like balances is returning a null value (as opposed to $0), and the module does not account for this? |
I've modified the package on my end and commented out line 85 of account.py so the function is now:
This solves my issue. My understanding is that for those of us that have never deposited any funds, the balances array is null and therefore will never have a length. Catching this error generates many unnecessary warnings, especially when using the homeassistant integration. If you agree, can you kindly remove the warning from your upstream package? Thanks! |
Log spam removed in 1.0.0 |
Running the test harness produces the following error
pyfamilysafety.account WARNING: Unknown account spending response, please report to developer. {'askAParentEnabled': False, 'balances': []}
This same error also reported in the ha integration.
The text was updated successfully, but these errors were encountered: