'Update the internal data from mytado.com.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    for (data_id, sensor) in list(self.sensors.items()):
        data = None
        try:
            if ('zone' in sensor):
                _LOGGER.info('Querying    mytado.com    for    zone    %s    %s', sensor['id'], sensor['name'])
                data = self.tado.getState(sensor['id'])
            if ('device' in sensor):
                _LOGGER.info('Querying    mytado.com    for    device    %s    %s', sensor['id'], sensor['name'])
                data = self.tado.getDevices()[0]
        except RuntimeError:
            _LOGGER.error('Unable    to    connect    to    myTado.    %s    %s', sensor['id'], sensor['id'])
        self.data[data_id] = data
