'Use the API to retrieve a list of devices.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def refresh_devices(self):

    _LOGGER.debug('Fetching    BloomSky    update')
    response = requests.get(self.API_URL, headers={'Authorization': self._api_key}, timeout=10)
    if (response.status_code == 401):
        raise RuntimeError('Invalid    API_KEY')
    elif (response.status_code != 200):
        _LOGGER.error('Invalid    HTTP    response:    %s', response.status_code)
        return
    self.devices.update({device['DeviceID']: device for device in response.json()})
