Skip to content

Commit

Permalink
updated as per new weather properties
Browse files Browse the repository at this point in the history
  • Loading branch information
anand-skylo committed Oct 21, 2022
1 parent 6b577e1 commit 7df6eca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ def available(self):
return self._fmi.current is not None

@property
def temperature(self):
def native_temperature(self):
"""Return the temperature."""
if self._fmi is None:
return None

return self._fmi.current.data.temperature.value

@property
def temperature_unit(self):
def native_temperature_unit(self):
"""Return the unit of measurement."""
if self._fmi is None:
return None
Expand All @@ -132,15 +132,15 @@ def humidity(self):
return self._fmi.current.data.humidity.value

@property
def precipitation(self):
def native_precipitation(self):
"""Return the humidity."""
if self._fmi is None:
return None

return self._fmi.current.data.precipitation_amount.value

@property
def wind_speed(self):
def native_wind_speed(self):
"""Return the wind speed."""
if self._fmi is None:
return None
Expand All @@ -158,7 +158,7 @@ def wind_bearing(self):
return self._fmi.current.data.wind_direction.value

@property
def pressure(self):
def native_pressure(self):
"""Return the pressure."""
if self._fmi is None:
return None
Expand Down

0 comments on commit 7df6eca

Please sign in to comment.