@@ -1126,10 +1126,10 @@ def min_write_parameter(
11261126 parameters [i ] = str (value )
11271127 elif isinstance (parameter_values , dict ):
11281128 # Dict maps param positions to values
1129- MAX_PARAMS = 19 # Maximum number of parameters supported
1129+ max_params = 19 # Maximum number of parameters supported
11301130 for pos , value in parameter_values .items ():
11311131 param_pos = int (pos ) if not isinstance (pos , int ) else pos
1132- if 1 <= param_pos <= MAX_PARAMS : # Validate parameter positions
1132+ if 1 <= param_pos <= max_params : # Validate parameter positions
11331133 parameters [param_pos ] = str (value )
11341134
11351135 # IMPORTANT: Create a data dictionary with ALL parameters explicitly included
@@ -1561,7 +1561,7 @@ def min_read_time_segments(
15611561
15621562 return segments
15631563
1564- def read_time_segments ( # noqa: PLR0912
1564+ def read_time_segments ( # noqa: PLR0912, PLR0915
15651565 self , device_sn : str , device_type : DeviceType , settings_data : dict | None = None
15661566 ) -> list [dict ]:
15671567 """
@@ -1777,7 +1777,7 @@ def read_parameter(
17771777 def common_write_time_segment (
17781778 self ,
17791779 command : str ,
1780- params : "TimeSegmentParams | MixAcDischargeTimeParams | MixAcChargeTimeParams" ,
1780+ params : "OpenApiV1. TimeSegmentParams | OpenApiV1. MixAcDischargeTimeParams | OpenApiV1. MixAcChargeTimeParams" ,
17811781 ) -> dict :
17821782 """Write a time segment parameter to the device."""
17831783 return self ._api .write_time_segment (
0 commit comments