Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
the-jeffski committed Nov 21, 2022
2 parents dc1d420 + 4044961 commit 61d605c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/medusa/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def update(self):
init['icon'] = 'mdi:eye-off'
card_json.append(init)

tv_shows = self.get_infos(self.protocol, self.host, self.port, self.token, self.web_root, 'future')
tv_shows = self.get_infos(self.protocol, self.host, self.port, self.web_root, self.token, 'future')

directory = "{0}/www/custom-lovelace/{1}/images/".format(self.base_dir, self._name)
if not os.path.exists(directory):
Expand Down Expand Up @@ -126,8 +126,8 @@ def update(self):
self.data = attributes
self.delete_old_tvshows(del_images, directory)

def get_infos(self, proto, host, port, token, web_root, cmd):
url = "{0}://{1}:{2}{3}/api/{4}/?cmd={5}&type=today|soon".format(
def get_infos(self, proto, host, port, web_root, token, cmd):
url = "{0}://{1}:{2}{3}/api/v1/{4}/?cmd={5}&type=today|soon".format(
proto, host, port, web_root, token, cmd)
ifs_movies = requests.get(url).json()
return ifs_movies
Expand Down

0 comments on commit 61d605c

Please sign in to comment.