Skip to content

Class attribute Info.version is typed as str | None but returns a list at runtime #725

@mib1185

Description

@mib1185

Hi @ctalkington

as reported in home-assistant/core#172541, the version attribute is typed as str | None but may return a list at runtime, which results in an unexpected value type while consuming it in Home Assistant.
I'm not sure, if it is intented to return a list and the type annotation is wrong, or if returning a list is wrong?

Debug log of `pyipp.parser`
2026-05-29 09:30:56.201 DEBUG (MainThread) [pyipp.parser] Parsing IPP Data
2026-05-29 09:30:56.201 DEBUG (MainThread) [pyipp.parser] IPP Version: (2, 0)
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] IPP Status Code: 1
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 9
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Name: attributes-charset (0x47)
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 32
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 5
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'utf-8'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: utf-8
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 37
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Name: attributes-natural-language (0x48)
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 69
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 5
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'en-us'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: en-us
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 75
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Name: requested-attributes (0x44)
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 100
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 12
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'printer-type'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: printer-type
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 112
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x44
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 117
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 20
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'printer-state-reason'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: printer-state-reason
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 137
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x44
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 142
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 10
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'device-uri'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: device-uri
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 152
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x44
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 157
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 17
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'printer-is-shared'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: printer-is-shared
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 175
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-name (0x42)
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 192
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 17
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'Lexmark MC2425adw'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: Lexmark MC2425adw
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 209
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-firmware-string-version (0x41)
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 245
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 3
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'2.0'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: 2.0
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 248
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x41
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 253
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'1.02'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: 1.02
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 257
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x41
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 262
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 3
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'1.7'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: 1.7
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 265
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x41
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 270
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 3
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'1.5'
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value: 1.5
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 273
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x41
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 278
2026-05-29 09:30:56.202 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 13
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'CXNZJ.250.038'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: CXNZJ.250.038
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 291
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-make-and-model (0x41)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 318
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 17
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'Lexmark MC2425adw'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: Lexmark MC2425adw
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 335
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-device-id (0x41)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 357
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 234
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'MANUFACTURER:Lexmark;COMMAND SET:PCL 6 Emulation, PostScript Level 3 Emulation, PDF, URF, PWG, NPAP, PJL;MODEL:Lexmark MC2400 Series;CLS:PRINTER;DES:Lexmark MC2425adw;CID:LexmarkPrinterColorA;COMMENT:ECP1.0, LV_043D, LP_0303, LF_00C2;'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: MANUFACTURER:Lexmark;COMMAND SET:PCL 6 Emulation, PostScript Level 3 Emulation, PDF, URF, PWG, NPAP, PJL;MODEL:Lexmark MC2400 Series;CLS:PRINTER;DES:Lexmark MC2425adw;CID:LexmarkPrinterColorA;COMMENT:ECP1.0, LV_043D, LP_0303, LF_00C2;
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 591
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-location (0x41)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 612
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 12
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'KorsseKrabbe'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: KorsseKrabbe
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 624
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-up-time (0x21)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 644
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 11896882
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 648
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: marker-colors (0x42)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 666
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 7
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'#00FFFF'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: #00FFFF
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 673
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x42
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 678
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 7
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'#FF00FF'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: #FF00FF
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 685
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x42
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 690
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 7
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'#FFFF00'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: #FFFF00
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 697
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x42
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 702
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 7
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'#000000'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: #000000
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 709
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: marker-low-levels (0x21)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 731
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 20
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 735
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 740
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 20
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 744
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 749
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 20
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 753
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 758
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 20
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 762
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: marker-high-levels (0x21)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 785
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 100
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 789
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 794
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 100
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 798
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 803
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 100
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 807
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 812
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 100
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 816
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: marker-types (0x44)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 833
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 15
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'toner-cartridge'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: toner-cartridge
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 848
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x44
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 853
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 15
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'toner-cartridge'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: toner-cartridge
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 868
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x44
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 873
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 15
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'toner-cartridge'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: toner-cartridge
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 888
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x44
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 893
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 15
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'toner-cartridge'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: toner-cartridge
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 908
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: marker-names (0x42)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 925
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'Cyan'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: Cyan
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 929
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x42
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 934
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 7
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'Magenta'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: Magenta
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 941
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x42
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 946
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 6
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'Yellow'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: Yellow
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 952
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x42
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 957
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 5
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'Black'
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: Black
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 962
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Name: marker-levels (0x21)
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 980
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 16
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 984
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 989
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 0
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 993
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 998
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Attribute Value: 0
2026-05-29 09:30:56.203 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1002
2026-05-29 09:30:56.204 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x21
2026-05-29 09:30:56.204 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1007
2026-05-29 09:30:56.204 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.204 DEBUG (MainThread) [pyipp.parser] Attribute Value: 45
2026-05-29 09:30:56.204 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1011
2026-05-29 09:30:56.204 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-supply (0x30)
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1030
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 54
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'type=toner;maxcapacity=100;level=16;colorantname=cyan;'
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Value: type=toner;maxcapacity=100;level=16;colorantname=cyan;
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1084
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x30
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1089
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 56
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'type=toner;maxcapacity=100;level=0;colorantname=magenta;'
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Value: type=toner;maxcapacity=100;level=0;colorantname=magenta;
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1145
2026-05-29 09:30:56.205 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x30
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1150
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 55
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'type=toner;maxcapacity=100;level=0;colorantname=yellow;'
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value: type=toner;maxcapacity=100;level=0;colorantname=yellow;
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1205
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x30
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1210
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 55
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'type=toner;maxcapacity=100;level=45;colorantname=black;'
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value: type=toner;maxcapacity=100;level=45;colorantname=black;
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1265
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-info (0x41)
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1282
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 29
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'Color - Up to 25 Pages/Minute'
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value: Color - Up to 25 Pages/Minute
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1311
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-more-info (0x45)
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1333
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 48
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'http://192.168.1.104/#/Settings/Network/AirPrint'
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value: http://192.168.1.104/#/Settings/Network/AirPrint
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1381
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-state (0x23)
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1399
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 4
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value: 3
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1403
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-state-message (0x41)
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1429
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 16
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'Printer is idle.'
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value: Printer is idle.
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1445
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Name: printer-uri-supported (0x45)
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1471
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 33
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'ipp://192.168.1.104:631/ipp/print'
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value: ipp://192.168.1.104:631/ipp/print
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Parsing Attribute at offset 1504
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Tag: 0x45
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Offset: 1509
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value Length: 34
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Bytes: b'ipps://192.168.1.104:443/ipp/print'
2026-05-29 09:30:56.206 DEBUG (MainThread) [pyipp.parser] Attribute Value: ipps://192.168.1.104:443/ipp/print

Regards,
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions