Skip to content

Commit c77f1b5

Browse files
committed
Fix conditional
Signed-off-by: Ian Brown <[email protected]>
1 parent 6a8ddc3 commit c77f1b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

custom_components/sensus_analytics/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"domain": "sensus_analytics",
33
"name": "Sensus Analytics Integration",
4-
"version": "1.6.9",
4+
"version": "1.6.10",
55
"documentation": "https://github.com/zestysoft/sensus_analytics_integration",
66
"dependencies": [],
77
"codeowners": ["@zestysoft"],

custom_components/sensus_analytics/sensor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _convert_usage(self, usage, usage_unit=None):
4848
return None
4949
if usage_unit is None:
5050
usage_unit = self.coordinator.data.get("usageUnit")
51-
if usage_unit == "CCF" and self.coordinator.config_entry.data.get("unit_type") == "gal":
51+
if usage_unit == "CF" and self.coordinator.config_entry.data.get("unit_type") == "gal":
5252
try:
5353
return round(float(usage) * CF_TO_GALLON)
5454
except (ValueError, TypeError):
@@ -75,7 +75,7 @@ def __init__(self, coordinator, entry):
7575
def _get_usage_unit(self):
7676
"""Determine the unit of measurement for usage sensors."""
7777
usage_unit = self.coordinator.data.get("usageUnit")
78-
if usage_unit == "CCF" and self.coordinator.config_entry.data.get("unit_type") == "gal":
78+
if usage_unit == "CF" and self.coordinator.config_entry.data.get("unit_type") == "gal":
7979
return "gal"
8080
return usage_unit
8181

0 commit comments

Comments
 (0)