diff --git a/lib/geo_therminator/pump_api/auth/api.ex b/lib/geo_therminator/pump_api/auth/api.ex index 9ce3da8..c85d2a3 100644 --- a/lib/geo_therminator/pump_api/auth/api.ex +++ b/lib/geo_therminator/pump_api/auth/api.ex @@ -51,7 +51,7 @@ defmodule GeoTherminator.PumpAPI.Auth.API do json = Jason.decode!(response.body) - Enum.map(json["installations"], fn item -> + Enum.map(json["items"], fn item -> %Auth.InstallationInfo{ id: item["id"] }