'Get the latest data from Fido and update the state.'

def update(self):

    self.fido_data.update()
    if (self.type == 'balance'):
        if (self.fido_data.data.get(self.type) is not None):
            self._state = round(self.fido_data.data[self.type], 2)
    elif (self.fido_data.data.get(self._number, {}).get(self.type) is not None):
        self._state = self.fido_data.data[self._number][self.type]
        self._state = round(self._state, 2)
