Skip to content

Commit

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

* Radarr sensor fix for issue #8250
  • Loading branch information
hoopty authored and balloob committed Jul 14, 2017
1 parent d473f34 commit 5829cdf
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 5829cdf

Please sign in to comment.