Use pyang option --capability-entity.