Skip to content

Commit

Permalink
Remove stale debug prints (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Aug 14, 2022
1 parent 87159d2 commit c6a6b59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/demetriek/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ async def _request(
raise_for_status=True,
)

print(await response.text())
content_type = response.headers.get("Content-Type", "")
if "application/json" not in content_type:
raise LaMetricError(response.status, {"message": await response.text()})
Expand Down
7 changes: 0 additions & 7 deletions src/demetriek/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ async def _request(
ssl=False,
)

print(await response.text())
content_type = response.headers.get("Content-Type", "")
if "application/json" not in content_type:
raise LaMetricError(response.status, {"message": await response.text()})
Expand Down Expand Up @@ -231,12 +230,6 @@ async def notify(
Returns:
The ID of the notification.
"""
print(
notification.dict(
by_alias=True,
exclude_none=True,
)
)
response = await self._request(
"/api/v2/device/notifications",
method=hdrs.METH_POST,
Expand Down

0 comments on commit c6a6b59

Please sign in to comment.