diff --git a/changelog.md b/changelog.md index 360e944..1c74ac3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,9 @@ +v2.08 +modify Forecast Summary sensor initialization. +when integration was loaded after 3:00 pm apparent time, None was set as value type instead of string, causing failure. +addresses issues in discussion #s [248](https://github.com/cytech/Home-Assistant-wundergroundpws/discussions/248) and [246](https://github.com/cytech/Home-Assistant-wundergroundpws/discussions/246) + + v2.0.7 Move sensor translation file initialization to WundergroundPWSUpdateCoordinatorConfig in `__init__.py` Fixes "Detected blocking call to open with args" warning diff --git a/custom_components/wundergroundpws/manifest.json b/custom_components/wundergroundpws/manifest.json index 8b603e0..e232a05 100644 --- a/custom_components/wundergroundpws/manifest.json +++ b/custom_components/wundergroundpws/manifest.json @@ -1,7 +1,7 @@ { "domain": "wundergroundpws", "name": "Wundergroundpws", - "version": "2.0.7", + "version": "2.0.8", "documentation": "https://github.com/cytech/Home-Assistant-wundergroundpws/", "issue_tracker": "https://github.com/cytech/Home-Assistant-wundergroundpws/discussions/", "requirements": [], diff --git a/custom_components/wundergroundpws/wupws_forecast_sensors.py b/custom_components/wundergroundpws/wupws_forecast_sensors.py index 1375128..419f422 100644 --- a/custom_components/wundergroundpws/wupws_forecast_sensors.py +++ b/custom_components/wundergroundpws/wupws_forecast_sensors.py @@ -52,7 +52,7 @@ name="Forecast Summary", feature=FEATURE_FORECAST_DAYPART, icon="mdi:gauge", - value_fn=lambda data, _: cast(str, data) if (data is not None) else None, + value_fn=lambda data, _: cast(str, data), entity_registry_enabled_default=False, ), WundergroundPWSSensorEntityDescription(