diff --git a/lib/geo_therminator/pump_api/device/server.ex b/lib/geo_therminator/pump_api/device/server.ex index c511483..c91f222 100644 --- a/lib/geo_therminator/pump_api/device/server.ex +++ b/lib/geo_therminator/pump_api/device/server.ex @@ -118,7 +118,8 @@ defmodule GeoTherminator.PumpAPI.Device.Server do [status, registers, opstat] = Task.async_stream( [&Device.API.status/2, &Device.API.register_info/2, &Device.API.opstat/2], - & &1.(user, state.device) + & &1.(user, state.device), + timeout: Application.get_env(:geo_therminator, :api_timeout) ) |> Enum.map(fn {:ok, val} -> val end)