Skip to content

Commit

Permalink
Fixing asyn sensor api
Browse files Browse the repository at this point in the history
  • Loading branch information
briis committed Oct 13, 2023
1 parent 97d5c01 commit 742b1e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyweatherflow_forecast/wffcst_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,10 @@ async def async_get_station(self) -> list[WeatherFlowStationData]:
async def async_get_sensors(self, voltage: float = None) -> list[WeatherFlowSensorData]:
"""Return list of sensor data."""
self._json_data = await self._api.async_get_sensors_api(
self._station_id, self._api_token, voltage
self._station_id, self._api_token
)

return _get_sensor_data(self._json_data, self._elevation)
return _get_sensor_data(self._json_data, self._elevation, voltage)

def _calced_day_values(day_number, hourly_data) -> dict[str, Any]:
"""Calculate values for day by using hourly data."""
Expand Down

0 comments on commit 742b1e7

Please sign in to comment.