Skip to content

Commit 20d2751

Browse files
committed
Comment out REST block
Sert à rien de garder ça
1 parent 2cbcd75 commit 20d2751

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

pyhilo/api.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -846,13 +846,12 @@ async def get_devices(self, location_id: int) -> list[dict[str, Any]]:
846846

847847
except Exception as e:
848848
LOG.warning("Fallback GraphQL device fetch failed %s", e)
849-
850-
else:
851-
# No URN available, use REST
852-
LOG.debug("No URN available, using REST endpoint")
853-
url = self._get_url("Devices", location_id=location_id)
854-
LOG.debug("Devices URL is %s", url)
855-
devices = await self.async_request("get", url)
849+
# TODO: ic-dev21 Remove this commented out block, it for reference only but will no longer work.
850+
# # No URN available, use REST
851+
# LOG.debug("No URN available, using REST endpoint")
852+
# url = self._get_url("Devices", location_id=location_id)
853+
# LOG.debug("Devices URL is %s", url)
854+
# devices = await self.async_request("get", url)
856855

857856
# Add gateway device (still uses REST endpoint)
858857
devices.append(await self.get_gateway(location_id))

0 commit comments

Comments
 (0)