change pair_dev api
allow edit_dev to replace dev_id in case of sensors