Skip to content

Commit 6e3b76f

Browse files
authored
Merge pull request #197 from astrandb/FixNegativeGust2
Show negative gust value as unknown
2 parents 02675e8 + 4b74348 commit 6e3b76f

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

custom_components/weatherlink/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from enum import StrEnum
44

55
DOMAIN = "weatherlink"
6-
VERSION = "2024.10.0b0"
6+
VERSION = "2024.10.0b1"
77

88
MANUFACTURER = "Davis Instruments"
99
CONFIG_URL = "https://www.weatherlink.com/"

custom_components/weatherlink/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"issue_tracker": "https://github.com/astrandb/weatherlink/issues",
1414
"requirements": [],
1515
"ssdp": [],
16-
"version": "2024.10.0b0",
16+
"version": "2024.10.0b1",
1717
"zeroconf": []
1818
}

custom_components/weatherlink/sensor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,10 @@ def native_value(self):
791791
if (
792792
self.coordinator.data[self.tx_id].get(self.entity_description.tag)
793793
is None
794+
or float(
795+
self.coordinator.data[self.tx_id].get(self.entity_description.tag)
796+
)
797+
< 0
794798
):
795799
return None
796800
if (

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpver]
2-
current_version = 2024.10.0b0
2+
current_version = 2024.10.0b1
33
version_pattern = YYYY.MM.PATCH[PYTAGNUM]
44
commit_message = "Bump version from {old_version} to {new_version}"
55
commit = False

0 commit comments

Comments
 (0)