diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a04b218 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "*.yaml": "home-assistant" + } +} \ No newline at end of file diff --git a/custom_components/radarr_upcoming_media/manifest.json b/custom_components/radarr_upcoming_media/manifest.json index c0675c3..7c104d5 100644 --- a/custom_components/radarr_upcoming_media/manifest.json +++ b/custom_components/radarr_upcoming_media/manifest.json @@ -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"], diff --git a/custom_components/radarr_upcoming_media/sensor.py b/custom_components/radarr_upcoming_media/sensor.py index d3ed4ed..d0a6602 100644 --- a/custom_components/radarr_upcoming_media/sensor.py +++ b/custom_components/radarr_upcoming_media/sensor.py @@ -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 @@ -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