-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
miottemplate.py print specs.json fails #906
Comments
Are you running the current master already? #902 should have fixed the issue with
|
Yes. I'm running the current master (python 3.7.3, debian buster). |
Hmm, okay, maybe there are some differences between python versions here. dataclasses-json is annoying to debug, but the following may help figuring out which part of the structure it is failing: open the
The fix in that PR was to add the necessary types for the containers, but figuring out which class is not being initialized is the first step to figure out how we could fix that for you. |
This is the output:
|
Ah, it's the second json, but that parses here also just fine. Which version of dataclasses-json do you have installed? This is the one I'm using: One more thing to try out, you could try to modify
to
If that let's it process the file further, then the rest of the |
It looks like this fixed the issue. |
I'm using dataclasses-json==0.5.2, too. |
…hti#906) (rytilahti#910) * Fix __repr__ of AirHumidifierMiotStatus (Closes: rytilahti#908) * Improve miottemplate.py print to support python 3.7.3
The text was updated successfully, but these errors were encountered: