Skip to content

Commit

Permalink
Merge pull request #286 from Pirate-Weather/accumulation-fix
Browse files Browse the repository at this point in the history
Fix Liquid/Snow/Ice accumulation in US units
  • Loading branch information
cloneofghosts committed Aug 16, 2024
2 parents 2624bbd + 8d3d2a9 commit d7fc3c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/pirateweather/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,9 @@ def get_state(self, data):
if self.requestUnits in ["us"]:
if self.type in [
"precip_accumulation",
"liquid_accumulation",
"snow_accumulation",
"ice_accumulation",
]:
state = state * 0.0393701

Expand Down

0 comments on commit d7fc3c3

Please sign in to comment.