-
Notifications
You must be signed in to change notification settings - Fork 9
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
AttributeError: 'NoneType' object has no attribute 'get' #1
Comments
I’ve only seen this error when I use an invalid cooker ID - have you tried to hit the API directly with your cooker ID? |
Yes. My firmware version is: VM176_A_01.04.03 if it matters. |
Can you post the output of that request? Please remove any identifying fields. |
|
Anything? |
Apologies for the delay. What type of Anova device do you have? |
Precision. The new model. |
Same here - I have the precision 2.0 and get the same error message. |
I compared the output of the device query and noticed that the website doesn't report the answers to the following lines in the script (not sure whether this is Precision 2.0 specific, but I guess it is if others find the script still works):
These lines are also exactly where I get the NoneType error. As you see above, I've #ed them out and the script works again! The easiest option to allow cross-cooker compatibility might be to first identify the type of cooker and then place if-statements before the lines above. I wonder whether the following bit might identify the cooker? "system-info-nxp": { |
I forked this with something similar to what niekbuurmah2o mentioned there, and it works. |
When setting the cooker variable with AnovaCooker('my device ID')
I'm getting this error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/dist-packages/anova/AnovaCooker.py", line 48, in __init__ self.update_state() File "/usr/local/lib/python3.6/dist-packages/anova/AnovaCooker.py", line 63, in update_state self.heater_duty_cycle = float(device_state.get('heater-control').get('duty-cycle')) AttributeError: 'NoneType' object has no attribute 'get'
Funny thing that last week it worked...
Tried it with 2 different systems..
Any Idea?
The text was updated successfully, but these errors were encountered: