diff --git a/custom_components/helium/sensor.py b/custom_components/helium/sensor.py index d04e7a1..cfd6754 100644 --- a/custom_components/helium/sensor.py +++ b/custom_components/helium/sensor.py @@ -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