File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
custom_components/solaredge_modbus_multi Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -762,11 +762,15 @@ def coordinator_timeout(self) -> int:
762762 this_timeout += SolarEdgeTimeouts .Init * self .number_of_inverters
763763 this_timeout += (SolarEdgeTimeouts .Device * 2 ) * 3 # max 3 per inverter
764764 this_timeout += (SolarEdgeTimeouts .Device * 2 ) * 2 # max 2 per inverter
765+ if self .option_detect_extras :
766+ this_timeout += (SolarEdgeTimeouts .Read * 3 ) * self .number_of_inverters
765767
766768 else :
767769 this_timeout = SolarEdgeTimeouts .Inverter * self .number_of_inverters
768770 this_timeout += SolarEdgeTimeouts .Device * self .number_of_meters
769771 this_timeout += SolarEdgeTimeouts .Device * self .number_of_batteries
772+ if self .option_detect_extras :
773+ this_timeout += (SolarEdgeTimeouts .Read * 3 ) * self .number_of_inverters
770774
771775 this_timeout = this_timeout / 1000
772776
You can’t perform that action at this time.
0 commit comments