Skip to content

Allow for markers and URIs being single values#411

Merged
ctalkington merged 5 commits intoctalkington:masterfrom
MattyRoy:master
May 26, 2023
Merged

Allow for markers and URIs being single values#411
ctalkington merged 5 commits intoctalkington:masterfrom
MattyRoy:master

Conversation

@MattyRoy
Copy link
Copy Markdown
Contributor

@MattyRoy MattyRoy commented May 23, 2023

I have investigated why I do not get ink/toner levels in Home Assistant for the IPP integration with my Canon MF230 laser printer (black only) when I stumbled upon this following open issue for the HA IPP integration.

After some digging I found the parsing to only cater for markers and URIs being list instances; I thus the changes in this pull request. Subsequently I see that there is already an open #410 , which this PR should fix.

Debug log from Home Assistant showing the IPP data: pyipp.log

@MattyRoy MattyRoy marked this pull request as draft May 23, 2023 19:38
@MattyRoy MattyRoy marked this pull request as ready for review May 23, 2023 19:38
@ctalkington ctalkington added the bugfix Inconsistencies or issues which will cause a problem for users or implementors. label May 24, 2023
@ctalkington ctalkington changed the title Cater for markers and URIs being single values as opposed to a list (#410) Allow for markers and URIs being single values May 24, 2023
Comment thread src/pyipp/models.py Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented May 24, 2023

Codecov Report

Merging #411 (87a9cb0) into master (781f3de) will decrease coverage by 2.45%.
The diff coverage is 22.22%.

@@            Coverage Diff             @@
##           master     #411      +/-   ##
==========================================
- Coverage   92.83%   90.38%   -2.45%     
==========================================
  Files           9        9              
  Lines         795      822      +27     
  Branches      108      117       +9     
==========================================
+ Hits          738      743       +5     
- Misses         23       39      +16     
- Partials       34       40       +6     
Impacted Files Coverage Δ
src/pyipp/models.py 82.60% <22.22%> (-11.03%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

MattyRoy and others added 2 commits May 25, 2023 09:14
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
@ctalkington ctalkington merged commit 0ebe89b into ctalkington:master May 26, 2023
@ctalkington
Copy link
Copy Markdown
Owner

Thanks!

@ctalkington ctalkington linked an issue May 27, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Inconsistencies or issues which will cause a problem for users or implementors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

markers don't seem to work if there is a single marker

3 participants