diff --git a/packages/modules/devices/discovergy/discovergy/api.py b/packages/modules/devices/discovergy/discovergy/api.py index 978f3565bb..1dd6dcc5b0 100644 --- a/packages/modules/devices/discovergy/discovergy/api.py +++ b/packages/modules/devices/discovergy/discovergy/api.py @@ -5,7 +5,7 @@ def get_last_reading(session: Session, meter_id: str): values = session.get( - "https://api.discovergy.com/public/v1/last_reading", + "https://api.inexogy.com/public/v1/last_reading", params={"meterId": meter_id}, timeout=3 ).json()["values"] diff --git a/packages/modules/devices/discovergy/discovergy/api_test.py b/packages/modules/devices/discovergy/discovergy/api_test.py index 881f0ffd94..8fd2452d2b 100644 --- a/packages/modules/devices/discovergy/discovergy/api_test.py +++ b/packages/modules/devices/discovergy/discovergy/api_test.py @@ -71,7 +71,7 @@ @pytest.fixture def mock_discovery_response(requests_mock): def do_mock(json_str: str): - requests_mock.get("https://api.discovergy.com/public/v1/last_reading?meterId=someMeterId", text=json_str) + requests_mock.get("https://api.inexogy.com/public/v1/last_reading?meterId=someMeterId", text=json_str) return do_mock