Skip to content

Commit 2cbcd75

Browse files
committed
Retrait fallback REST
Sert à rien, c'est mort ce endpoint-là.
1 parent 18fe145 commit 2cbcd75

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

pyhilo/api.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,8 @@ async def get_devices(self, location_id: int) -> list[dict[str, Any]]:
845845
# Continue without mapping - devices will work read-only
846846

847847
except Exception as e:
848-
LOG.warning("GraphQL device fetch failed, falling back to REST: %s", e)
849-
# Fallback to REST
850-
url = self._get_url("Devices", location_id=location_id)
851-
LOG.debug("Devices URL is %s", url)
852-
devices = await self.async_request("get", url)
848+
LOG.warning("Fallback GraphQL device fetch failed %s", e)
849+
853850
else:
854851
# No URN available, use REST
855852
LOG.debug("No URN available, using REST endpoint")

0 commit comments

Comments
 (0)