Skip to content

Commit

Permalink
Merge pull request #21 from XxInvictus/patch-1
Browse files Browse the repository at this point in the history
Update Rating Dict Key's
  • Loading branch information
mkanet authored Feb 1, 2024
2 parents e770c1d + c6fdb4a commit 02783f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/radarr_upcoming_media/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def extra_state_attributes(self):
card_item['runtime'] = movie.get('runtime', '')
card_item['studio'] = movie.get('studio', '')
card_item['genres'] = movie.get('genres', '')
if 'ratings' in movie and movie['ratings']['value'] > 0:
if 'ratings' in movie and movie['ratings']['tmdb']['value'] > 0:
card_item['rating'] = ('\N{BLACK STAR} ' +
str(movie['ratings']['value']))
str(movie['ratings']['tmdb']['value']))
else:
card_item['rating'] = ''
if 'images' in movie:
Expand Down

0 comments on commit 02783f2

Please sign in to comment.