Skip to content

Commit b01fc7c

Browse files
committed
print the awkward http response when it happens
1 parent b7860d6 commit b01fc7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/rtetempo/api_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def _update_tempo_days(
267267
payload = response.json()
268268
except requests.JSONDecodeError as exc:
269269
_LOGGER.error(
270-
"JSON parsing error on a HTTP 200 request: %s", exc)
270+
"JSON parsing error on a HTTP 200 request (%s):\n%s", exc, response.text)
271271
return None
272272
# Parse datetimes and fix time for start and end dates
273273
tempo_days_time: list[TempoDay] = []

0 commit comments

Comments
 (0)