@@ -106,7 +106,7 @@ class GrowattAnnounceResponse(GrowattResponse):
106
106
function_code = 0x03
107
107
108
108
def __init__ (self , ** kwargs ):
109
- GrowattResponse .__init__ (self , protocol = 6 , ** kwargs )
109
+ GrowattResponse .__init__ (self , ** kwargs )
110
110
self .wifi_serial = kwargs .get ('wifi_serial' , [])
111
111
self .inverter_serial = kwargs .get ('inverter_serial' , [])
112
112
@@ -135,7 +135,7 @@ class GrowattAnnounceRequest(GrowattRequest):
135
135
"""
136
136
137
137
def __init__ (self , ** kwargs ):
138
- GrowattRequest .__init__ (self , protocol = 6 , ** kwargs )
138
+ GrowattRequest .__init__ (self , ** kwargs )
139
139
self .wifi_serial = kwargs .get ('wifi_serial' , [])
140
140
self .device_serial = kwargs .get ('device_serial' , [])
141
141
self .active_rate = kwargs .get ('active_rate' , 0 )
@@ -207,7 +207,7 @@ class GrowattEnergyResponse(GrowattResponse):
207
207
function_code = 0x04
208
208
209
209
def __init__ (self , ** kwargs ):
210
- GrowattResponse .__init__ (self , protocol = 6 , ** kwargs )
210
+ GrowattResponse .__init__ (self , ** kwargs )
211
211
212
212
def encode (self ):
213
213
""" ACK the Energy message
@@ -232,7 +232,7 @@ class GrowattEnergyRequest(GrowattRequest):
232
232
function_code = 0x04
233
233
234
234
def __init__ (self , ** kwargs ):
235
- GrowattRequest .__init__ (self , protocol = 6 , ** kwargs )
235
+ GrowattRequest .__init__ (self , ** kwargs )
236
236
self .wifi_serial = []
237
237
self .inverter_serial = []
238
238
self .year = 0
@@ -339,7 +339,7 @@ class GrowattPingResponse(GrowattResponse):
339
339
function_code = 0x16
340
340
341
341
def __init__ (self , ** kwargs ):
342
- GrowattResponse .__init__ (self , protocol = 6 , ** kwargs )
342
+ GrowattResponse .__init__ (self , ** kwargs )
343
343
self .wifi_serial = kwargs .get ('wifi_serial' , [])
344
344
345
345
def encode (self ):
@@ -362,7 +362,7 @@ class GrowattPingRequest(GrowattRequest):
362
362
function_code = 0x16
363
363
364
364
def __init__ (self , ** kwargs ):
365
- GrowattRequest .__init__ (self , protocol = 6 , ** kwargs )
365
+ GrowattRequest .__init__ (self , ** kwargs )
366
366
self .wifi_serial = kwargs .get ('wifi_serial' , [])
367
367
368
368
def encode (self ):
@@ -389,7 +389,7 @@ class GrowattConfigResponse(GrowattResponse):
389
389
function_code = 0x18
390
390
391
391
def __init__ (self , ** kwargs ):
392
- GrowattResponse .__init__ (self , protocol = 6 , ** kwargs )
392
+ GrowattResponse .__init__ (self , ** kwargs )
393
393
self .wifi_serial = kwargs .get ("wifi_serial" , [])
394
394
self .config_id = kwargs .get ("config_id" , 0 )
395
395
self .config_value = kwargs .get ("config_value" , '' )
@@ -421,7 +421,7 @@ class GrowattConfigRequest(GrowattRequest):
421
421
function_code = 0x18
422
422
423
423
def __init__ (self , ** kwargs ):
424
- GrowattRequest .__init__ (self , protocol = 6 , ** kwargs )
424
+ GrowattRequest .__init__ (self , ** kwargs )
425
425
self .wifi_serial = kwargs .get ("wifi_serial" , [])
426
426
self .config_id = kwargs .get ("config_id" , 0 )
427
427
self .config_value = kwargs .get ("config_value" , '' )
@@ -450,7 +450,7 @@ class GrowattQueryResponse(GrowattResponse):
450
450
function_code = 0x19
451
451
452
452
def __init__ (self , ** kwargs ):
453
- GrowattResponse .__init__ (self , protocol = 6 , ** kwargs )
453
+ GrowattResponse .__init__ (self , ** kwargs )
454
454
self .wifi_serial = kwargs .get ("wifi_serial" , [])
455
455
self .first_config = kwargs .get ("first_config" , 0 )
456
456
self .last_config = kwargs .get ("last_config" , None )
@@ -483,7 +483,7 @@ class GrowattQueryRequest(GrowattRequest):
483
483
function_code = 0x19
484
484
485
485
def __init__ (self , ** kwargs ):
486
- GrowattRequest .__init__ (self , protocol = 6 , ** kwargs )
486
+ GrowattRequest .__init__ (self , ** kwargs )
487
487
self .wifi_serial = kwargs .get ("wifi_serial" , [])
488
488
self .config_id = kwargs .get ("config_id" , 0 )
489
489
self .config_value = kwargs .get ("config_value" , '' )
@@ -534,7 +534,7 @@ class GrowattBufferedEnergyResponse(GrowattResponse):
534
534
function_code = 0x50
535
535
536
536
def __init__ (self , ** kwargs ):
537
- GrowattResponse .__init__ (self , protocol = 6 , ** kwargs )
537
+ GrowattResponse .__init__ (self , ** kwargs )
538
538
self .wifi_serial = kwargs .get ('wifi_serial' , [])
539
539
540
540
def encode (self ):
@@ -557,7 +557,7 @@ class GrowattBufferedEnergyRequest(GrowattRequest):
557
557
function_code = 0x50
558
558
559
559
def __init__ (self , ** kwargs ):
560
- GrowattRequest .__init__ (self , protocol = 6 , ** kwargs )
560
+ GrowattRequest .__init__ (self , ** kwargs )
561
561
self .wifi_serial = kwargs .get ("wifi_serial" , [])
562
562
self .inverter_serial = kwargs .get ("inverter_serial" , [])
563
563
self .year = kwargs .get ("year" , 0 )
0 commit comments