From b74a17dc1c1340284307e2051453a0d023f8f9c4 Mon Sep 17 00:00:00 2001 From: Chris Wesseling Date: Mon, 22 Jul 2024 23:12:29 +0200 Subject: [PATCH] Change NumberMembers to IntMembers This makes those struct fields show up as `int` when you hover them in your editor. And will give red squiglies when assiging values with the wrong type. --- circuitmatter/__init__.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/circuitmatter/__init__.py b/circuitmatter/__init__.py index e27b8be..fabb0fe 100644 --- a/circuitmatter/__init__.py +++ b/circuitmatter/__init__.py @@ -2,9 +2,9 @@ import binascii import enum -import pathlib import json import os +import pathlib import struct import time @@ -112,13 +112,13 @@ PROTOCOL_OPCODES = { # : UNSIGNED INTEGER [ range 16-bits ], # } class SessionParameterStruct(tlv.TLVStructure): - session_idle_interval = tlv.NumberMember(1, " STRUCTURE [ tag-order ] @@ -135,8 +135,8 @@ class SessionParameterStruct(tlv.TLVStructure): # } class PBKDFParamRequest(tlv.TLVStructure): initiatorRandom = tlv.OctetStringMember(1, 32) - initiatorSessionId = tlv.NumberMember(2, "