Skip to content

Commit eb2b711

Browse files
committed
fix two lint errors in contribution
1 parent cfea3da commit eb2b711

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

weconnect/elements/battery_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def update(self, fromDict, ignoreAttributes=None):
3535

3636
if (self.fixAPI
3737
and round((self.cruisingRangeElectric_km.value or 0) * 0.621371) == cruisingRangeElectric_km
38-
and self.currentSOC_pct.value == int(fromDict['value']['currentSOC_pct'])):
38+
and self.currentSOC_pct.value == int(fromDict['value']['currentSOC_pct'])):
3939
LOG.info('%s: Attribute cruisingRangeElectric_km was miscalculated (miles/km) this is a bug in the API and the new value will not be used',
4040
self.getGlobalAddress())
4141
else:

weconnect/elements/range_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def update(self, fromDict):
9898

9999
if (self.parent.fixAPI
100100
and round((self.remainingRange_km.value or 0) * 0.621371) == int(fromDict['remainingRange_km'])
101-
and self.currentSOC_pct.value == int(fromDict['currentSOC_pct'])):
101+
and self.currentSOC_pct.value == int(fromDict['currentSOC_pct'])):
102102
LOG.info('%s: Attribute remainingRange_km was miscalculated (miles/km) this is a bug in the API and the new value will not be used',
103103
self.getGlobalAddress())
104104
else:

0 commit comments

Comments
 (0)