def _update_credentials_by_precedence(self, trello_list_config):
        if not trello_list_config.get('api_key'):
            found_credentials = self._config['list_actions_sensor']\
                if self._config['list_actions_sensor'].get('api_key') else self._config

            trello_list_config['api_key'] = found_credentials.get('api_key')
            trello_list_config['token'] = found_credentials.get('token')
Find Trello API credentials (`api_token` and `token`) from config.
dataset/ETHPy150Open StackStorm/st2contrib/packs/trello/sensors/list_actions_sensor.py/TrelloListSensor._update_credentials_by_precedence