Photovoltaic inverter integrated with high voltage battery