Skip to content
This repository has been archived by the owner on May 28, 2020. It is now read-only.

Commit

Permalink
Updated comments in file
Browse files Browse the repository at this point in the history
  • Loading branch information
“Bjarne committed Jan 28, 2020
1 parent 6a53a81 commit 2491cf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/mbweather/meteobridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def _get_sensor_data(self):
self._israining = True if float(self._rainrate) > 0 else False
self._islowbat = True if float(self._lowbat) > 0 else False

# Data below is comming from Dark Sky, and is updated by external component. Thus we need to check if available
# and don't overwrite values if present.
if "condition" in self.sensor_data:
if self.sensor_data["condition"] is not None:
self._condition = self.sensor_data["condition"]
Expand Down

0 comments on commit 2491cf1

Please sign in to comment.