Skip to content

Commit

Permalink
Merge c275616 into 7807b40
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Page committed Mar 16, 2019
2 parents 7807b40 + c275616 commit 00bf1e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/weather/darksky.py
Expand Up @@ -232,4 +232,6 @@ def update(self):
@property
def units(self):
"""Get the unit system of returned data."""
if self.data is None:
return None
return self.data.json.get('flags').get('units')

0 comments on commit 00bf1e5

Please sign in to comment.