From dc1d420b491cb0956b74e75b1a972f9e20631055 Mon Sep 17 00:00:00 2001 From: The-Jeffski <63499439+the-jeffski@users.noreply.github.com> Date: Mon, 21 Nov 2022 14:05:32 +0000 Subject: [PATCH] Correct API Param on banner --- custom_components/medusa/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/medusa/sensor.py b/custom_components/medusa/sensor.py index 4fe773e..887f56a 100644 --- a/custom_components/medusa/sensor.py +++ b/custom_components/medusa/sensor.py @@ -170,7 +170,7 @@ def add_banner(self, lst_images, directory, banner, id, card_items, del_images): if banner in del_images: del_images.remove(banner) else: - img_data = requests.get("{0}://{1}:{2}/api/v1/{4}/?cmd=show.getbanner&indexerid={4}".format(self.protocol, self.host, self.port, self.web_root, self.token, id)) + img_data = requests.get("{0}://{1}:{2}/api/v1/{4}/?cmd=show.getbanner&indexerid={5}".format(self.protocol, self.host, self.port, self.web_root, self.token, id)) if not img_data.status_code.__eq__(200): return ""