Skip to content

Commit 3e3f5a5

Browse files
committed
feat: add major_version attribute to device initialization
1 parent 381c18a commit 3e3f5a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/blinkstick/devices/device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class BlinkStickDevice(Generic[T]):
2020
variant: BlinkStickVariant = field(init=False)
2121

2222
def __post_init__(self):
23+
self.major_version = self.serial_details.major_version
2324
self.variant = BlinkStickVariant.from_version_attrs(
2425
major_version=self.serial_details.major_version,
2526
version_attribute=self.version_attribute,

0 commit comments

Comments
 (0)