def add_location_timezone_to_device(self, device_obj, location, timezone):
        """
            Returns 'device object' with updated location
            
            http://docs.exosite.com/portals/#update-device
            http://docs.exosite.com/portals/#device-object
        """
        dictify_device_meta(device_obj)
        device_obj['info']['description']['meta']['location'] = location
        device_obj['info']['description']['meta']['Location'] = location
        device_obj['info']['description']['meta']['timezone'] = timezone
        device_obj['info']['description']['meta']['Timezone'] = timezone
        return self.update_device(device_obj)
def add_location_timezone_to_device ( self , device_obj , location , timezone ) : dictify_device_meta ( device_obj ) device_obj [ 'info' ] [ 'description' ] [ 'meta' ] [ 'location' ] = location device_obj [ 'info' ] [ 'description' ] [ 'meta' ] [ 'Location' ] = location device_obj [ 'info' ] [ 'description' ] [ 'meta' ] [ 'timezone' ] = timezone device_obj [ 'info' ] [ 'description' ] [ 'meta' ] [ 'Timezone' ] = timezone return self . update_device ( device_obj )
Returns 'device object' with updated location
            
            http://docs.exosite.com/portals/#update-device
            http://docs.exosite.com/portals/#device-object