Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyipp/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"printer-uri-supported",
"device-uri",
"printer-is-shared",
"printer-more-info",
]

DEFAULT_PORT = 631
Expand Down
3 changes: 3 additions & 0 deletions pyipp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Info:
serial: Optional[str] = None
uuid: Optional[str] = None
version: Optional[str] = None
more_info: Optional[str] = None

@staticmethod
def from_dict(data: dict):
Expand Down Expand Up @@ -83,6 +84,8 @@ def from_dict(data: dict):
uptime=data.get("printer-up-time", 0),
uuid=uuid[9:] if uuid else None, # strip urn:uuid: from uuid
version=data.get("printer-firmware-string-version", None),
more_info=data.get("printer-more-info", None)

)


Expand Down