From 398c0ac0cee00c0ae526da5b5951c6af3394f8c3 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 9 Sep 2021 00:35:25 +0100 Subject: [PATCH] Fix await for response text. --- helpers/myradio_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/myradio_api.py b/helpers/myradio_api.py index 02fde77..070c66f 100644 --- a/helpers/myradio_api.py +++ b/helpers/myradio_api.py @@ -58,7 +58,7 @@ class MyRadioAPI: self._logException( "Failed to get API request. Status code: " + str(response.status) ) - self._logException(str(response.text())) + self._logException(str(await response.text())) return await response.read() def call(self, url, method="GET", data=None, timeout=10, json_payload=True):