def update(self): """Get the latest state of the sensor.""" from pyripple import get_balance balance = get_balance(self.address) if balance is not None: self._state = balance
def update(self): """Get the latest state of the sensor.""" balance = get_balance(self.address) if balance is not None: self._state = balance
def update(self): """Get the latest state of the sensor.""" if (balance := get_balance(self.address)) is not None: self._state = balance