From 127d99539950ee9a29522a36417f2d14bb9b39ac Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Wed, 1 Sep 2021 23:50:12 +0100 Subject: [PATCH] Fix duplicate get request breaking await --- helpers/myradio_api.py | 1 - 1 file changed, 1 deletion(-) diff --git a/helpers/myradio_api.py b/helpers/myradio_api.py index d73cacf..28ada7a 100644 --- a/helpers/myradio_api.py +++ b/helpers/myradio_api.py @@ -44,7 +44,6 @@ class MyRadioAPI: func = session.get(url) status_code = -1 if method == "GET": - func = session.get(url) status_code = 200 elif method == "POST": func = session.post(url, data=data)