@@ -229,7 +229,7 @@ def __init__(self):
229229 self .unknown1 = Int (0 , length = 2 )
230230 self .network_is_online = Int (0 , length = 2 )
231231 self .circle_plus_mac = String (None , length = 16 )
232- self .network_id = Int (0 , length = 4 )
232+ self .network_id = Int (0 , 4 , False )
233233 self .unknown2 = Int (0 , length = 2 )
234234 self .params += [
235235 self .unknown1 ,
@@ -257,7 +257,7 @@ def __init__(self):
257257 super ().__init__ ()
258258 self .in_RSSI = Int (0 , length = 2 )
259259 self .out_RSSI = Int (0 , length = 2 )
260- self .ping_ms = Int (0 , length = 4 )
260+ self .ping_ms = Int (0 , 4 , False )
261261 self .params += [
262262 self .in_RSSI ,
263263 self .out_RSSI ,
@@ -302,7 +302,7 @@ class CirclePlusScanResponse(NodeResponse):
302302 def __init__ (self ):
303303 super ().__init__ ()
304304 self .node_mac = String (None , length = 16 )
305- self .node_address = Int (0 , length = 2 )
305+ self .node_address = Int (0 , 2 , False )
306306 self .params += [self .node_mac , self .node_address ]
307307
308308
@@ -383,7 +383,7 @@ def __init__(self):
383383 super ().__init__ ()
384384
385385 self .time = RealClockTime ()
386- self .day_of_week = Int (0 , length = 2 )
386+ self .day_of_week = Int (0 , 2 , False )
387387 self .date = RealClockDate ()
388388 self .params += [self .time , self .day_of_week , self .date ]
389389
@@ -400,7 +400,7 @@ class CircleClockResponse(NodeResponse):
400400 def __init__ (self ):
401401 super ().__init__ ()
402402 self .time = Time ()
403- self .day_of_week = Int (0 , 2 )
403+ self .day_of_week = Int (0 , 2 , False )
404404 self .unknown = Int (0 , 2 )
405405 self .unknown2 = Int (0 , 4 )
406406 self .params += [self .time , self .day_of_week , self .unknown , self .unknown2 ]
@@ -458,7 +458,7 @@ class NodeAwakeResponse(NodeResponse):
458458
459459 def __init__ (self ):
460460 super ().__init__ ()
461- self .awake_type = Int (0 , length = 2 )
461+ self .awake_type = Int (0 , 2 , False )
462462 self .params += [self .awake_type ]
463463
464464
@@ -475,7 +475,7 @@ class NodeSwitchGroupResponse(NodeResponse):
475475
476476 def __init__ (self ):
477477 super ().__init__ ()
478- self .group = Int (0 , length = 2 )
478+ self .group = Int (0 , 2 , False )
479479 self .power_state = Int (0 , length = 2 )
480480 self .params += [
481481 self .group ,
@@ -526,7 +526,7 @@ class NodeAckResponse(NodeResponse):
526526
527527 def __init__ (self ):
528528 super ().__init__ ()
529- self .ack_id = Int (0 , length = 2 )
529+ self .ack_id = Int (0 , 2 , False )
530530
531531
532532class SenseReportResponse (NodeResponse ):
0 commit comments