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

Inconsistent supported_models between class and instance objects #1451

Closed
rytilahti opened this issue Jul 8, 2022 · 0 comments · Fixed by #1462
Closed

Inconsistent supported_models between class and instance objects #1451

rytilahti opened this issue Jul 8, 2022 · 0 comments · Fixed by #1462
Labels

Comments

@rytilahti
Copy link
Owner

In [1]: from miio import AirPurifierMiot                                                                                                                                                                                                  

In [2]: AirPurifierMiot.supported_models                                                                                                                                                                                                  
Out[2]: dict_keys(['zhimi.airpurifier.ma4', 'zhimi.airpurifier.mb3', 'zhimi.airpurifier.va1', 'zhimi.airpurifier.vb2', 'zhimi.airpurifier.mb4', 'zhimi.airp.mb4a', 'zhimi.airp.mb5', 'zhimi.airp.va2', 'zhimi.airp.vb4', 'zhimi.airp.rmb1', 'zhimi.airpurifier.za1'])

In [3]: dev = AirPurifierMiot("127.0.0.1", 32*" ")                                                                                                                                                                                        

In [4]: dev.supported_models                                                                                                                                                                                                              
Out[4]: []

Originally posted by @rytilahti in #1447 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant