From c6a6b59924dc4107e530ffbdaea9657d944207b7 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 14 Aug 2022 15:27:22 +0200 Subject: [PATCH] Remove stale debug prints (#197) --- src/demetriek/cloud.py | 1 - src/demetriek/device.py | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/demetriek/cloud.py b/src/demetriek/cloud.py index 10dab83a..64fe59aa 100644 --- a/src/demetriek/cloud.py +++ b/src/demetriek/cloud.py @@ -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()}) diff --git a/src/demetriek/device.py b/src/demetriek/device.py index 52a37720..2772f68e 100644 --- a/src/demetriek/device.py +++ b/src/demetriek/device.py @@ -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()}) @@ -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,