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

Error on startup #10

Open
apper13 opened this issue May 21, 2020 · 4 comments · May be fixed by #20
Open

Error on startup #10

apper13 opened this issue May 21, 2020 · 4 comments · May be fixed by #20

Comments

@apper13
Copy link

apper13 commented May 21, 2020

Hi, I really like your project. I have an issues with the code:

On line 72 of thinq2/model/thinq.py I get the following error: AttributeError: 'dict' object has no attribute 'device_type'. Accessing item.device_type does not work for me. item['device_type'] or item.get("device_type", {}) works, but than the result of this line (device_schema) is not able to load the snapshop in the next line... Even if it seems like it gets the current schema (LaundryDevice).

The error when calling device_schema.load() is: AttributeError: 'dict' object has no attribute 'snapshot'. Of course there is no attribute snapshot if you are accessing only the snapshop part of data. So I thought I would change it to just use data, but then I get the next error: marshmallow.exceptions.ValidationError: {'result': {'item': {0: {'washerDryer': ['Missing data for required field.'], 'timestamp': ['Missing data for required field.'], 'static': ['Missing data for required field.']}}}}.

Maybe you can help?!

@apper13 apper13 changed the title Remaining time when starting script when washing machine is running Error on startup May 21, 2020
@timvdd
Copy link

timvdd commented Aug 1, 2020

I have exactly the same issue.

@smgrieve
Copy link

same issue here.

@infinit13
Copy link

Me too

@mfarley281
Copy link

mfarley281 commented Nov 20, 2022

Same issue here :( -- and also only have 1 single device, a washer/dryer

@natanjunges natanjunges linked a pull request Feb 23, 2023 that will close this issue
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 a pull request may close this issue.

5 participants