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

Add generic __repr__ for Device class #869

Merged
merged 2 commits into from
Nov 28, 2020
Merged

Conversation

rytilahti
Copy link
Owner

@rytilahti rytilahti commented Nov 25, 2020

Example output:

>>> from miio import Vacuum
>>> x = Vacuum("192.168.xx.xx", "48794cxx")
>>> x
<Vacuum: 192.168.xx.xx (token: 48794cxx)>

Thanks to @darckly's #868 for the reminder to add this.

@rytilahti rytilahti merged commit 217e887 into master Nov 28, 2020
@rytilahti rytilahti deleted the feat/generic_device_repr branch November 28, 2020 16:40
@rytilahti rytilahti mentioned this pull request Mar 13, 2021
xvlady pushed a commit to xvlady/python-miio that referenced this pull request May 9, 2021
* Add generic __repr__ for Device class

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

Successfully merging this pull request may close these issues.

1 participant