def update(self):
    'Get the latest state of the sensor.'
    self._state = get_balance(self.addresses)
Get the latest state of the sensor.
def update(self):
    
    self._state = get_balance(self.addresses)