Skip to content

Commit

Permalink
Merge pull request #24 from mkanet/master
Browse files Browse the repository at this point in the history
Added deep_link attribute.   Rating Dict Key's updated
  • Loading branch information
mkanet authored Feb 1, 2024
2 parents 02783f2 + fa07091 commit 4da70fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"*.yaml": "home-assistant"
}
}
2 changes: 1 addition & 1 deletion custom_components/radarr_upcoming_media/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "radarr_upcoming_media",
"name": "Radarr Upcoming Media",
"version": "0.3.6",
"version": "0.3.7",
"documentation": "https://github.com/custom-components/sensor.radarr_upcoming_media",
"dependencies": [],
"codeowners": ["@maykar"],
Expand Down
2 changes: 2 additions & 0 deletions custom_components/radarr_upcoming_media/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def extra_state_attributes(self):
card_item['fanart'] = ''
else:
continue
card_item['deep_link'] = f'http://{self.host}:{self.port}/movie/{movie.get("tmdbId")}'
self.card_json.append(card_item)
self.change_detected = False
attributes['data'] = self.card_json
Expand Down Expand Up @@ -196,6 +197,7 @@ def update(self):
]][:3])
except:
movie['genres'] = ''
movie['deep_link'] = f'http://{self.host}:{self.port}/movie/{movie.get("id", "unknown")}'
else:
self._state = '%s cannot be reached' % self.host

Expand Down

0 comments on commit 4da70fd

Please sign in to comment.