thinq2-python icon indicating copy to clipboard operation
thinq2-python copied to clipboard

Error on startup

Open apper13 opened this issue 4 years ago • 4 comments

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 avatar May 21 '20 09:05 apper13

I have exactly the same issue.

timvdd avatar Aug 01 '20 20:08 timvdd

same issue here.

smgrieve avatar Oct 27 '20 18:10 smgrieve

Me too

infinit13 avatar Mar 20 '21 14:03 infinit13

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

mfarley281 avatar Nov 20 '22 11:11 mfarley281