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 __repr__ to wizlight object #142

Merged
merged 2 commits into from
Mar 5, 2022
Merged

Add __repr__ to wizlight object #142

merged 2 commits into from
Mar 5, 2022

Conversation

Teraskull
Copy link
Contributor

This PR contains the following changes:

  • Add __repr__ to the wizlight object.

This allows for easier debugging when printing out a wizlight object:

>>> print(bulb)

# Before:
<pywizlight.bulb.wizlight object at 0x0000022E89D0C160>

# After:
wizlight(ip="192.168.1.2", port=38899, mac="123456789123")
  • Fix typos in the README.

@codecov-commenter
Copy link

Codecov Report

Merging #142 (28a9a60) into master (1806dcf) will decrease coverage by 0.09%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
- Coverage   90.96%   90.86%   -0.10%     
==========================================
  Files          12       12              
  Lines         874      876       +2     
==========================================
+ Hits          795      796       +1     
- Misses         79       80       +1     
Impacted Files Coverage Δ
pywizlight/bulb.py 90.31% <50.00%> (-0.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1806dcf...28a9a60. Read the comment docs.

@sbidy sbidy merged commit fcc5159 into sbidy:master Mar 5, 2022
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 this pull request may close these issues.

3 participants