Skip to content

Commit

Permalink
fix: black formatting and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw committed Jun 1, 2024
1 parent 891c321 commit 3fa5f53
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
8 changes: 6 additions & 2 deletions aiocloudweather/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,19 @@ class WeatherStation:
barometer: Sensor = field(default=None, metadata={"name": "Absolute Pressure"})
temperature: Sensor = field(default=None, metadata={"name": "Outdoor Temperature"})
humidity: Sensor = field(default=None, metadata={"name": "Outdoor Humidity"})
indoortemperature: Sensor = field(default=None, metadata={"name": "Indoor Temperature"})
indoortemperature: Sensor = field(
default=None, metadata={"name": "Indoor Temperature"}
)
indoorhumidity: Sensor = field(default=None, metadata={"name": "Indoor Humidity"})
dewpoint: Sensor = field(default=None, metadata={"name": "Outdoor Dewpoint"})
rain: Sensor = field(default=None, metadata={"name": "Rain Rate"})
dailyrain: Sensor = field(default=None, metadata={"name": "Daily Rain Rate"})
winddirection: Sensor = field(default=None, metadata={"name": "Wind Direction"})
windspeed: Sensor = field(default=None, metadata={"name": "Wind Speed"})
windgustspeed: Sensor = field(default=None, metadata={"name": "Wind Gust"})
windgustdirection: Sensor = field(default=None, metadata={"name": "Wind Gust Direction"})
windgustdirection: Sensor = field(
default=None, metadata={"name": "Wind Gust Direction"}
)
uv: Sensor = field(default=None, metadata={"name": "UV Index"})
solarradiation: Sensor = field(default=None, metadata={"name": "Solar Radiation"})
heatindex: Sensor = field(default=None, metadata={"name": "Heat Index"})
Expand Down
20 changes: 10 additions & 10 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ def test_weather_station_from_wunderground():
humidity=44,
dewpoint=49.2,
rain=0,
daily_rain=0,
wind_direction=249,
wind_speed=2.0,
wind_gust_speed=2.7,
dailyrain=0,
winddirection=249,
windspeed=2.0,
windgustspeed=2.7,
uv=2,
solar_radiation=289.2,
solarradiation=289.2,
)
weather_station = WeatherStation.from_wunderground(raw_sensor_data)

Expand Down Expand Up @@ -48,12 +48,12 @@ def test_weather_station_from_weathercloud():
humidity=80,
dewpoint=129,
rain=0,
daily_rain=0,
wind_direction=288,
wind_speed=0,
wind_gust_speed=0,
dailyrain=0,
winddirection=288,
windspeed=0,
windgustspeed=0,
uv=0,
solar_radiation=470,
solarradiation=470,
)
weather_station = WeatherStation.from_weathercloud(raw_sensor_data)

Expand Down

0 comments on commit 3fa5f53

Please sign in to comment.