Skip to content

Commit

Permalink
Increased timeout
Browse files Browse the repository at this point in the history
PSA servers are slow, therefore timeout had to be increased.
  • Loading branch information
andlem74 authored Dec 6, 2024
1 parent ff981cb commit 1f262f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/modules/vehicles/psacc/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def fetch(vehicle_config: PSACCVehicleSoc, vehicle_update_data: VehicleUpdateData) -> CarState:
c = vehicle_config.configuration
url = f'http://{c.psacc_server_or_ip}:{c.psacc_port}/get_vehicleinfo/{c.vehicle_vin}'
response = req.get_http_session().get(url, timeout=5).json()
response = req.get_http_session().get(url, timeout=10).json()
energy = response['energy'][0]
return CarState(soc=energy['level'], range=energy['autonomy'])

Expand Down

0 comments on commit 1f262f1

Please sign in to comment.