Skip to content

Commit a968b0d

Browse files
author
dave_albright
committed
v2.0.8
forecast summary init discussion # 246 and 248
1 parent 36e33bf commit a968b0d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v2.08
2+
modify Forecast Summary sensor initialization.
3+
when integration was loaded after 3:00 pm apparent time, None was set as value type instead of string, causing failure.
4+
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)
5+
6+
17
v2.0.7
28
Move sensor translation file initialization to WundergroundPWSUpdateCoordinatorConfig in `__init__.py`
39
Fixes "Detected blocking call to open with args" warning

custom_components/wundergroundpws/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "wundergroundpws",
33
"name": "Wundergroundpws",
4-
"version": "2.0.7",
4+
"version": "2.0.8",
55
"documentation": "https://github.com/cytech/Home-Assistant-wundergroundpws/",
66
"issue_tracker": "https://github.com/cytech/Home-Assistant-wundergroundpws/discussions/",
77
"requirements": [],

custom_components/wundergroundpws/wupws_forecast_sensors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
name="Forecast Summary",
5353
feature=FEATURE_FORECAST_DAYPART,
5454
icon="mdi:gauge",
55-
value_fn=lambda data, _: cast(str, data) if (data is not None) else None,
55+
value_fn=lambda data, _: cast(str, data),
5656
entity_registry_enabled_default=False,
5757
),
5858
WundergroundPWSSensorEntityDescription(

0 commit comments

Comments
 (0)