Skip to content

Commit

Permalink
Radarr sensor fix for issue home-assistant#8250 (home-assistant#8456)
Browse files Browse the repository at this point in the history
* Radarr sensor fix for issue home-assistant#8250

* Radarr sensor fix for issue home-assistant#8250
  • Loading branch information
hoopty authored and dethpickle committed Aug 18, 2017
1 parent 89f6a6d commit 3bbead2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/sensor/radarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ def get_date(zone, offset=0):

def get_release_date(data):
"""Get release date."""
date = data['physicalRelease']
date = data.get('physicalRelease')
if not date:
date = data['inCinemas']
date = data.get('inCinemas')
return date


Expand Down

0 comments on commit 3bbead2

Please sign in to comment.