Skip to content

Commit

Permalink
Merge pull request #197 from astrandb/FixNegativeGust2
Browse files Browse the repository at this point in the history
Show negative gust value as unknown
  • Loading branch information
astrandb authored Oct 11, 2024
2 parents 02675e8 + 4b74348 commit 6e3b76f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/weatherlink/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from enum import StrEnum

DOMAIN = "weatherlink"
VERSION = "2024.10.0b0"
VERSION = "2024.10.0b1"

MANUFACTURER = "Davis Instruments"
CONFIG_URL = "https://www.weatherlink.com/"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/weatherlink/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"issue_tracker": "https://github.com/astrandb/weatherlink/issues",
"requirements": [],
"ssdp": [],
"version": "2024.10.0b0",
"version": "2024.10.0b1",
"zeroconf": []
}
4 changes: 4 additions & 0 deletions custom_components/weatherlink/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,10 @@ def native_value(self):
if (
self.coordinator.data[self.tx_id].get(self.entity_description.tag)
is None
or float(
self.coordinator.data[self.tx_id].get(self.entity_description.tag)
)
< 0
):
return None
if (
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpver]
current_version = 2024.10.0b0
current_version = 2024.10.0b1
version_pattern = YYYY.MM.PATCH[PYTAGNUM]
commit_message = "Bump version from {old_version} to {new_version}"
commit = False
Expand Down

0 comments on commit 6e3b76f

Please sign in to comment.