Skip to content

Commit

Permalink
Added visibility to hourly forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
briis committed May 5, 2024
1 parent f4e1165 commit 6e8c1aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## Release 1.1.6

Date: `2024-05-05`

### Changes

- Bumped pymeteobridgesql to 1.2.2 to support new database fields
- Added visibility to Hourly Forecast

## Release 1.1.5

Date: `2024-05-01`
Expand Down
4 changes: 2 additions & 2 deletions custom_components/meteobridge/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/briis/meteobridgesql/issues",
"requirements": [
"pymeteobridgesql==1.2.1",
"pymeteobridgesql==1.2.2",
"mysql-connector-python==8.3.0"
],
"version": "1.1.5"
"version": "1.1.6"
}
2 changes: 2 additions & 0 deletions custom_components/meteobridge/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def _forecast(self, hourly: bool) -> list[Forecast] | None:
native_temperature = item.temperature
native_apparent_temperature = item.apparent_temperature
wind_bearing = item.wind_bearing
native_visibility = item.visibility,
native_wind_gust_speed = item.wind_gust
native_wind_speed = item.wind_speed
uv_index = item.uv_index
Expand All @@ -183,6 +184,7 @@ def _forecast(self, hourly: bool) -> list[Forecast] | None:
"native_temperature": native_temperature,
"native_apparent_temperature": native_apparent_temperature,
"wind_bearing": wind_bearing,
"native_visibility": native_visibility,
"native_wind_gust_speed": native_wind_gust_speed,
"native_wind_speed": native_wind_speed,
"uv_index": uv_index,
Expand Down

0 comments on commit 6e8c1aa

Please sign in to comment.