From 6e8c1aa87daf6bba61a8da842a48d95185e3b2f2 Mon Sep 17 00:00:00 2001 From: Bjarne Riis Date: Sun, 5 May 2024 11:26:25 +0000 Subject: [PATCH] Added visibility to hourly forecast --- CHANGELOG.md | 9 +++++++++ custom_components/meteobridge/manifest.json | 4 ++-- custom_components/meteobridge/weather.py | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a9feff..fd328a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/custom_components/meteobridge/manifest.json b/custom_components/meteobridge/manifest.json index 989f767..4e15a91 100644 --- a/custom_components/meteobridge/manifest.json +++ b/custom_components/meteobridge/manifest.json @@ -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" } \ No newline at end of file diff --git a/custom_components/meteobridge/weather.py b/custom_components/meteobridge/weather.py index 796b53c..d184aad 100644 --- a/custom_components/meteobridge/weather.py +++ b/custom_components/meteobridge/weather.py @@ -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 @@ -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,