'Get the latest data from the Ted5000 XML API.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    import xmltodict
    try:
        request = requests.get(self.url, timeout=10)
    except requests.exceptions.RequestException as err:
        _LOGGER.error('No    connection    to    endpoint:    %s', err)
    else:
        doc = xmltodict.parse(request.text)
        mtus = int(doc['LiveData']['System']['NumberMTU'])
        for mtu in range(1, (mtus + 1)):
            power = int(doc['LiveData']['Power'][('MTU%d' % mtu)]['PowerNow'])
            voltage = int(doc['LiveData']['Voltage'][('MTU%d' % mtu)]['VoltageNow'])
            if ((power == 0) or (voltage == 0)):
                continue
            else:
                self.data[mtu] = {'W': power, 'V': (voltage / 10)}
