Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnodgrass committed Jan 19, 2022
1 parent 8393639 commit bfd4891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/helium/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async def async_update(self):
# update USD price attribute for the current HNT value based on current Oracle HNT/USD price
if self._state and self._price_sensor.state:
self._attrs[CURRENCY_USD] = round(self._price_sensor.state * self._state, 2)
else
else:
self._attrs.pop(CURRENCY_USD)

@property
Expand Down

0 comments on commit bfd4891

Please sign in to comment.