diff --git a/platformio/clients/registry.py b/platformio/clients/registry.py index 4bd2aaf4..3a45a48e 100644 --- a/platformio/clients/registry.py +++ b/platformio/clients/registry.py @@ -117,7 +117,7 @@ class RegistryClient(HTTPClient): if page: params["page"] = int(page) return self.fetch_json_data( - "get", "/v3/packages", params=params, cache_valid="1h" + "get", "/v3/search", params=params, cache_valid="1h" ) def get_package(self, type_, owner, name, version=None): diff --git a/tests/package/test_manager.py b/tests/package/test_manager.py index 4dae6302..a42110e9 100644 --- a/tests/package/test_manager.py +++ b/tests/package/test_manager.py @@ -202,7 +202,7 @@ def test_install_from_registry(isolated_pio_core, tmpdir_factory): lm.install("AsyncMqttClient-esphome @ 0.8.4", silent=True) assert len(lm.get_installed()) == 3 pkg = lm.get_package("AsyncTCP-esphome") - assert pkg.metadata.spec.owner == "esphome" + assert pkg.metadata.spec.owner == "ottowinter" assert not lm.get_package("non-existing-package") # mbed library assert lm.install("wolfSSL", silent=True)